Skip to content

timezone-less NWB files are failing DANDI-side validation #284

@bendichter

Description

@bendichter

We have a server-side issue with validation of NWB files. Until this is resolved, most NWB files submitted to DANDI will be unpublishable.

NWB recently removed the requirement for NWB session_start_time to have a timezone (PR). We previously had been defaulting to assigning the timezone of where the conversion was run, but were concerned that this was often incorrect. It’s also very unusual for recording systems or any other metadata to include the timezone, so the timezone requirement made it challenging to automate conversion.

The necessary changes have been made to the software, and these new timezone-less files propagate just fine through NWB GUIDE, NeuroConv, PyNWB, HDMF, NWB Inspector, and the dandi CLI. Creation, validation, and upload work well.

However, these new files are failing validation on DANDI server side, which means it is currently impossible to publish these files. See here for an example.

Our preferred solution would be to relax the validation on DANDI server side to allow for NWB files that have datetime that do not have timezones. We're not sure where this line would be. The schema just lists the requirement as datetime, and it's not clear how that is meant to be serealized/deserialized and if that requires a timezone to be present.

startDate: Optional[datetime] = Field(None, json_schema_extra={"nskey": "schema"})

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingupstreamwontfixThis will not be worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions