allensdk.brain_observatory.behavior.data_objects.metadata.subject_metadata.age module

class allensdk.brain_observatory.behavior.data_objects.metadata.subject_metadata.age.Age(age: int)[source]

Bases: DataObject, JsonReadableInterface, LimsReadableInterface, NwbReadableInterface

Age (in days) of animal at the time the behavior session was taken.

classmethod from_json(dict_repr: dict) Age[source]

Populates a DataFile from a JSON compatible dict (likely parsed by argschema)

Returns:
DataObject:

An instantiated DataObject which has name and value properties

classmethod from_lims(behavior_session_id: int, lims_db: PostgresQueryMixin) Age[source]

Populate a DataObject from an internal database (likely LIMS)

Returns:
DataObject:

An instantiated DataObject which has name and value properties

classmethod from_nwb(nwbfile: NWBFile) Age[source]

Populate a DataObject from a pyNWB file object.

Parameters:
nwbfile:

The file object (NWBFile) of a pynwb dataset file.

Returns:
DataObject:

An instantiated DataObject which has name and value properties

static to_iso8601(age: int)[source]