Skip to content

Difficult to read errors for datetime objects that are not timezone aware #594

@h-mayorquin

Description

@h-mayorquin

This comes from helping someone in dandi help desk as described here:

dandi/dandi-cli#1640

The user has an NWB file built with MATLAB that includes datetime objects without timezone information.

When I use the inspector to check the file I get this super long construction error that is not easy to read. Moreover, with 3,044,533 lines I find it unreasonable long:

cat nwbinspector  ../P22_1120_FBL_04272014_2.nwb | wc -l
nwbinspector  ../P22_1120_FBL_04272014_2.nwb > error_no_timezone.txt

error_no_timezone.txt

In pynwb 3.0.0 I am unable to open his file:

Image

and the error is not that complicated.

But given that the inspector is meant to be used by matlab users as well (when they upload to dandi) maybe this type of error should surface in a more user friendly way? Is there a way to improve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions