pynwb.validate module

Command line tool to Validate an NWB file against a namespace.

pynwb.validate.validate(io=None, namespace=None, paths=None, use_cached_namespaces=True, verbose=False)[source]

Validate NWB file(s) against a namespace or its cached namespaces.

Parameters
  • io (HDMFIO) – An open IO to an NWB file.

  • namespace (str) – A specific namespace to validate against.

  • paths (list) – List of NWB file paths.

  • use_cached_namespaces (bool) – Whether to use namespaces cached within the file for validation.

  • verbose (bool) – Whether or not to print messages to stdout.

Returns

Validation errors in the file.

Return type

(<class ‘list’>, (<class ‘list’>, <class ‘bool’>))

pynwb.validate.validate_cli()[source]

CLI wrapper around pynwb.validate.