Skip to content

[Add Check]: entire col/row of table is not NaN, and entire axis of TimeSeries.data is not NaN #155

@CodyCBakerPhD

Description

@CodyCBakerPhD

What would you like to see added to the NWBInspector?

We were in the process of making something like this inspired by the previous commented code, but was also discovered in a recent manual inspection.

Basically, an entire row or column of a DynamicTable, or an entire axis of a TimeSeries, should not all be NaN.

There are some exceptions that we have to observe such as x,y,z for ElectrodeTable. Basically any field that is required schematically but unknown in practice, we'd have to skip. But for axes optionally added or certainly custom fields, they should not be included if they are unknown.

Pseudocode or other logic of the check

all(np.isnan(getattr(obj, "data")))

Do you have any interest in helping implement the check function?

Yes.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: new checka new best practices check to apply to all NWBFiles and their contentspriority: lowalternative solution already working and/or relevant to only specific user(s)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions