allensdk.brain_observatory.ecephys.optotagging module¶
- class allensdk.brain_observatory.ecephys.optotagging.OptotaggingTable(table: DataFrame)[source]¶
Bases:
DataObject
,JsonReadableInterface
,NwbWritableInterface
,NwbReadableInterface
Optotagging table - optotagging stimulation
- classmethod from_json(dict_repr: dict) OptotaggingTable [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_nwb(nwbfile: NWBFile) OptotaggingTable [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
- to_nwb(nwbfile: NWBFile) NWBFile [source]¶
Given an already populated DataObject, return an pyNWB file object that had had DataObject data added.
- Parameters:
- nwbfileNWBFile
An NWB file object
- Returns:
- NWBFile
An NWB file object that has had data from the DataObject added to it.
- property value: DataFrame¶
- Returns:
- A dataframe with columns:
start_time: onset of stimulation
condition: optical stimulation pattern
level: intensity (in volts output to the LED) of stimulation
stop_time: stop time of stimulation
stimulus_name: stimulus name
duration: duration of stimulation