Skip to content

[Add Check]: Subject weight should have form "[numeric] [string]" #370

Open
@rly

Description

@rly

What would you like to see added to the NWBInspector?

In the schema, subject weight is a string. In general, we want to encourage SI units for all fields, with exceptions. For weight, this is kg. In PyNWB, we allow float/string to be entered, and if a float is entered, " kg" is appended to the end.

If a unit is not part of the weight string, it is ambiguous what unit the weight is in. Therefore, I suggest that the subject weight string be checked to have the form "[numeric] [string]". I would argue this is a critical error.

This may be addressed in the schema, but for now, I think it would be good to address this in the inspector.

Pseudocode or other logic of the check

No response

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

No.

Code of Conduct

Metadata

Metadata

Labels

category: new checka new best practices check to apply to all NWBFiles and their contents

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions