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).
get_sessions_info ¶
get_sessions_info()
Return a dict with common session metadata fields, with safe fallbacks.