allensdk.brain_observatory.behavior.data_objects.metadata.behavior_metadata.project_code module¶
- class allensdk.brain_observatory.behavior.data_objects.metadata.behavior_metadata.project_code.ProjectCode(project_code: str | None = None)[source]¶
Bases:
DataObject
,LimsReadableInterface
,NwbReadableInterface
Unique identifier for the project this BehaviorSession is associated with. Project ids can be used internally to extract a project code.
If project_Code is null/None, we set the value to string ‘Not Available’.
- classmethod from_lims(behavior_session_id: int, lims_db: PostgresQueryMixin) ProjectCode [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) ProjectCode [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