Skip to content

Commit f6ebc3e

Browse files
committed
feat: replace dandi.validate.validate_bids use with dandi.bids_validator_deno.bids_validate use
1 parent a6b7231 commit f6ebc3e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

dandi/files/bids.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
from dandischema.models import BareAsset
1212

13+
from dandi.bids_validator_deno import bids_validate
14+
1315
from .bases import GenericAsset, LocalFileAsset, NWBAsset
1416
from .zarr import ZarrAsset
1517
from ..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

0 commit comments

Comments
 (0)