convnwb.utils.validate.validate_nwb

convnwb.utils.validate.validate_nwb(file_name, folder=None, raise_error=True, verbose=False)[source]

Validate a NWB file.

Parameters:
file_namestr or Path

Name of the NWB file to validate.

folderstr or Path, optional

Name of the folder where the file is located.

raise_errorboolean, optional, default: True

Whether to raise an error if the NWB file fails validation.

verboseboolean, optional, default: True

Whether to print out information about NWB validation.

Returns:
errorslist or None

A list of errors if any were found, None if no errors were found.

Raises:
ValueError

If there is an error in the NWB file. Only raised if raise_error is True.