Skip to content

pynwb-validate does not detect missing timezone in datetime objects #2084

Open
@h-mayorquin

Description

@h-mayorquin

Related to this issue in dandi-cli and this one in nwbinspector, both within the ecosystem:

A user created a file in MATLAB using datetime objects, but without specifying a timezone. When they tried to upload the file to DANDI, the upload failed. They reported that they had used pynwb-validate to check for errors and found none. I was able to reproduce the issue using their file:

pynwb-validate P22_1120_FBL_04272014_2.nwb
Validating P22_1120_FBL_04272014_2.nwb against cached namespace information using namespace 'core'.
 - no errors found.

However, the file fails validation with nwbinspector and also cannot be opened using PyNWB 3.0.

Two questions:

  1. Is this a bug or limitation in pynwb-validate?
  2. Now that the inspector handles more comprehensive validation, should we reduce the prominence of pynwb-validate to avoid confusion? According to the PyNWB validation documentation, it seems that nwbinspector covers everything pynwb-validate does and more. Is there still a reason to keep pynwb-validate visible in the documentation? Perhaps it would be better to only link to the inspector to prevent misunderstandings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: bugerrors in the code or code behaviorcategory: questionquestions about code or code behaviorpriority: mediumnon-critical problem and/or affecting only a small set of NWB userstopic: HDMFissues related to the use, depending on, or affecting HDMFtopic: docsissues related to documentationtopic: validatorissues related to validation of files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions