dandi.validate#

Functions

validate(*paths[, schema_version, ...])

Validate content

validate_bids(*paths[, schema_version])

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