Quantity¶
Quantity maps on to two things: required and cardinality.
Though it is technically possible to use an integer as a quantity, that is never done in the core schema, which is our only target for now.
We will handle cardinality of array dimensions elsewhere
- QUANTITY_MAP = {'*': {'multivalued': True, 'required': None}, '+': {'multivalued': True, 'required': True}, '?': {'multivalued': None, 'required': None}, 1: {'multivalued': None, 'required': True}, None: {'multivalued': None, 'required': None}}¶
Map between NWB quantity values and linkml quantity metaslot values.
Use
Nonefor defaults (required: False, multivalued: False) rather thanFalseto avoid adding unnecessary attributes