Skip to content

Commit

Permalink
Merge pull request #1095 from dandi/bids_transition
Browse files Browse the repository at this point in the history
Use upstream bidsschematools for BIDS validation
  • Loading branch information
yarikoptic committed Aug 26, 2022
2 parents 99fa604 + 4bb376f commit ef097cc
Show file tree
Hide file tree
Showing 96 changed files with 3 additions and 18,865 deletions.
3 changes: 0 additions & 3 deletions dandi/cli/cmd_validate.py
Expand Up @@ -21,14 +21,12 @@
help="Whether to write a report under a unique path in the DANDI log directory.",
)
@click.argument("paths", nargs=-1, type=click.Path(exists=True, dir_okay=True))
@devel_debug_option()
@map_to_click_exceptions
def validate_bids(
paths,
schema,
report,
report_path,
devel_debug=False,
):
"""Validate BIDS paths.
Expand All @@ -46,7 +44,6 @@ def validate_bids(
report=report,
report_path=report_path,
schema_version=schema,
devel_debug=devel_debug,
)
valid = is_valid(validator_result)
report_errors(validator_result)
Expand Down
2 changes: 1 addition & 1 deletion dandi/cli/tests/test_cmd_validate.py
Expand Up @@ -7,7 +7,7 @@ def test_validate_bids_error(bids_examples):
from ..cmd_validate import validate_bids

expected_error = (
"Summary: 2 filename patterns required by BIDS could not be found "
"Summary: 1 filename pattern required by BIDS could not be found "
"and 1 filename did not match any pattern known to BIDS.\n"
)
broken_dataset = os.path.join(bids_examples, "invalid_pet001")
Expand Down
Empty file removed dandi/support/bids/__init__.py
Empty file.
153 changes: 0 additions & 153 deletions dandi/support/bids/schema.py

This file was deleted.

0 comments on commit ef097cc

Please sign in to comment.