File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111from dandischema .models import BareAsset
1212
13+ from dandi .bids_validator_deno import bids_validate
14+
1315from .bases import GenericAsset , LocalFileAsset , NWBAsset
1416from .zarr import ZarrAsset
1517from ..consts import ZARR_MIME_TYPE
@@ -65,9 +67,6 @@ def bids_root(self) -> Path:
6567 def _validate (self ) -> None :
6668 with self ._lock :
6769 if self ._dataset_errors is None :
68- # Import here to avoid circular import
69- from dandi .validate import validate_bids
70-
7170 bids_paths = [str (self .filepath )] + [
7271 str (asset .filepath ) for asset in self .dataset_files
7372 ]
@@ -87,7 +86,7 @@ def _validate(self) -> None:
8786 bids_paths += [str (readme_candidate )]
8887 # end of ad-hoc fix.
8988
90- results = validate_bids (self .bids_root )
89+ results = bids_validate (self .bids_root )
9190 self ._dataset_errors : list [ValidationResult ] = []
9291 self ._asset_errors : dict [str , list [ValidationResult ]] = defaultdict (
9392 list
You can’t perform that action at this time.
0 commit comments