session.optogenetic¶
Optogenetic stimulation series and times.
cicada_nwb.submodules.optogenetic.NWBOptogenetic ¶
Read-only access to optogenetic stimulation stored in an NWB file (acquisition 'ogen_stim').
get_opto_stimulation_time_serie ¶
get_opto_stimulation_time_serie()
Return (data, timestamps) for optogenetic stimulation, or None.
get_opto_stimulation_times ¶
get_opto_stimulation_times()
Return the stimulation periods as a 2D array (2, n_stimulations): row 0 = first, row 1 = last timestamp of each run of non-zero stimulation values. None if no optogenetic stimulation.
has_opto_stimulation ¶
has_opto_stimulation()
Return True if the file has an optogenetic stimulation series (acquisition 'ogen_stim').