-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not use monitor_delay in timestamps for running speed #2334
Comments
Just a thought -- would you consider |
I do think |
I'm open to the name |
Doesn't |
Now that we are removing the Additionally, we can add checks to the
|
Here is an additional complication: if you generate a This block of code constructs the StimulusTimestamps for an ophys experiment from a sync file It gets passed to the related The behavior session will create the necessary Note that the reconstructs the stimulus timestamps from the stimulus file. The knowledge of the existence of the sync file has been forgotten. Note that, before #2364 was merged, the See I think the problem is that we have created |
As a result of PR #2256, the
StimulusTimestamps
data object inallensdk/brain_observatory/behavior/data_objects
is always created with a value formonitor_delay
. While this is appropriate for timestamps associated with stimuli that are presented on the monitor, it is not appropriate for running speeds. Running speeds are measured directly from the running wheel. The monitor has nothing to do with them. To fix this, we will implement a new timestamps class that knows nothing aboutmonitor_delay
and make sure that the data object classes inallensdk/brain_observatory/behavior/data_objects/running_speed/
use that new class, rather thanStimulusTimestamps
. As a part of this work, any shared functionality between the new class andStimulusTimestamps
should be factored out into a timestamps base class from which both inherit.Tasks
BehaviorTimestamps
base class from whichStimulusTimestamps
andRunningSpeedTimestamps
both inherit.RunningSpeedTimestamps
class which instantiates timestamps the same wayStimulusTimestamps
do, but which has no knowledge ofmonitor_delay
.allensdk/brain_observatory/behavior/data_objects/running_speed/
to useRunningSpeedTimestamps
rather thanStimulusTimestamps
.The code defining
StimulusTimestamps
can be found inallensdk/brain_observatory/behavior/data_objects/timestamps/stimulus_timestamps/
Validation
RunningSpeedTimestamps
can be round-tripped to- and from- JSON and NWB filesRunningSpeedTimestamps
are identical toStimulusTimestamps
except that they have no monitor delay (and monitor delay has not been added to theirvalue
)stim
andtrials
timestamp columns (to make sure that we haven't accidentally brokenStimulusTimestamps
)The text was updated successfully, but these errors were encountered: