You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to know if the values in ophys_frame indicate the time at the onset of a frame? the time at the middle of a frame? or the time at the offset of a frame?
Another way to put this question:
Lets say, dataset.timestamps['ophys_frames'] = [ 7.85277, 7.94601, 8.03926, 8.1325 ...]
does it mean that the first frame is from 7.85277 to 7.94601 sec?
I saw the following in the "convert" code, which makes me think the values indicate the onset of the frames, but I'd like to make sure. Thanks.
vs2p_r = sync_dataset.get_rising_edges('2p_vsync')
vs2p_f = sync_dataset.get_falling_edges(
'2p_vsync', ) # new sync may be able to do units = 'sec', so conversion can be skipped
vs2p_rsec = vs2p_r / sample_freq
vs2p_fsec = vs2p_f / sample_freq
if use_acq_trigger: # if 2P6, filter out solenoid artifacts
vs2p_r_filtered, vs2p_f_filtered = filter_digital(vs2p_rsec, vs2p_fsec, threshold=0.01)
frames_2p = vs2p_r_filtered
else: # dont need to filter out artifacts in pipeline data
frames_2p = vs2p_rsec
# use rising edge for Scientifica, falling edge for Nikon http://confluence.corp.alleninstitute.org/display/IT/Ophys+Time+Sync
# Convert to seconds - skip if using units in get_falling_edges, otherwise convert before doing filter digital
The text was updated successfully, but these errors were encountered:
I think this is will depend on how scan image store this value. Perhaps @nataliaorlova can answer this directly. I am not sure I remember how scan image usually time each frame.
@matchings @jeromelecoq
I'd like to know if the values in ophys_frame indicate the time at the onset of a frame? the time at the middle of a frame? or the time at the offset of a frame?
Another way to put this question:
Lets say, dataset.timestamps['ophys_frames'] = [ 7.85277, 7.94601, 8.03926, 8.1325 ...]
does it mean that the first frame is from 7.85277 to 7.94601 sec?
I saw the following in the "convert" code, which makes me think the values indicate the onset of the frames, but I'd like to make sure. Thanks.
The text was updated successfully, but these errors were encountered: