Skip to content

Commit

Permalink
Merge branch 'merge_validation' of github.com:dandi/dandi-cli into me…
Browse files Browse the repository at this point in the history
…rge_validation
  • Loading branch information
TheChymera committed Dec 22, 2022
2 parents 2befd3a + 242be00 commit b4e2e59
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions dandi/files/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .bases import GenericAsset, LocalFileAsset, NWBAsset
from .zarr import ZarrAsset
from ..consts import ZARR_MIME_TYPE
from ..metadata import add_common_metadata, prepare_metadata
from ..metadata import add_common_metadata
from ..misctypes import Digest
from ..validate_types import ValidationResult

Expand Down Expand Up @@ -102,6 +102,8 @@ def _validate(self) -> None:
print(result)
print("jj")
assert result.path
print(result.path)
print("kk1")
bids_path = result.path.relative_to(self.bids_root).as_posix()
self._asset_errors[bids_path].append(result)
elif result.id in BIDS_DATASET_ERRORS:
Expand All @@ -117,12 +119,6 @@ def _validate(self) -> None:
print(result.path)
print("kk1")
bids_path = result.path.relative_to(self.bids_root).as_posix()
print("kk2")
assert result.metadata is not None
print("kk3")
self._asset_metadata[bids_path] = prepare_metadata(
result.metadata
)
self._bids_version = result.origin.bids_version
print("kk4")
print("..")
Expand Down

0 comments on commit b4e2e59

Please sign in to comment.