allensdk.brain_observatory.behavior.data_objects.rewards module¶
- class allensdk.brain_observatory.behavior.data_objects.rewards.Rewards(rewards: DataFrame)[source]¶
Bases:
DataObject,StimulusFileReadableInterface,NwbReadableInterface,NwbWritableInterface- classmethod from_nwb(nwbfile: NWBFile) Rewards | None[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
- classmethod from_stimulus_file(stimulus_file: BehaviorStimulusFile, stimulus_timestamps: StimulusTimestamps) Rewards[source]¶
Get reward data from pkl file, based on timestamps (not sync file).