Skip to content

session.metadata

Session and subject metadata.

cicada_nwb.submodules.metadata.NWBMetadata

Read-only access to subject and session metadata stored in an NWB file. No computation — returns raw values as stored.

age property

age

Age of the subject. Returns int (days or months) or None. Use age_unit to determine the time unit. A range (ISO 8601, e.g. 'P90D/P120D') gives its lower bound; an age that cannot be read (e.g. '/', 'P1Y2M') gives None.

age_unit property

age_unit

Unit of the subject age. Returns 'D' (days), 'M' (months), or None (no age, or an age that cannot be read).

experiment_description property

experiment_description

experimenter property

experimenter

genotype property

genotype

identifier property

identifier

institution property

institution

lab property

lab

protocol property

protocol

session_description property

session_description

session_id property

session_id

sex property

sex

species property

species

subject_id property

subject_id

weight property

weight

age_sort

age_sort()

Raw age string from NWB, used for GUI grouping/sorting.

get_sessions_info

get_sessions_info()

Return a dict with common session metadata fields, with safe fallbacks.