dandi.validate#
Functions
|
Validate content |
|
Validate BIDS paths. |
- dandi.validate.validate(*paths: str | Path, schema_version: str | None = None, devel_debug: bool = False, allow_any_path: bool = False) Iterator[ValidationResult] [source]#
Validate content
- Parameters:
paths (list(str)) – Could be individual (.nwb) files or a single dandiset path.
- Yields:
path, errors – errors for a path
- dandi.validate.validate_bids(*paths: str | Path, schema_version: str | None = None) list[ValidationResult] [source]#
Validate BIDS paths.
- Parameters:
paths (list(str)) – Paths to validate.
devel_debug (bool, optional) – Whether to trigger debugging in the BIDS validator.
- Returns:
Dictionary reporting required patterns not found and existing filenames not matching any patterns.
- Return type:
dict
Notes
- Eventually this should be migrated to BIDS schema specified errors, see discussion here:
https://github.com/bids-standard/bids-specification/issues/1262