-
Notifications
You must be signed in to change notification settings - Fork 23
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
Ecephys warnings removal and clean up #1158
Conversation
Looks good.
If we are removing the ability to set the starting times directly, we should probably include a way to set the starting_time and rate (currently, the temporal alignment methods require that aligned starting times use full timestamps). |
We have methods for this: neuroconv/src/neuroconv/datainterfaces/ecephys/baserecordingextractorinterface.py Lines 185 to 221 in 05423d1
And the function to add ElectricalSeries decides whether to write starting_time + rate or timestamps. |
Ok, so to set the starting time, you would call
I guess this works, it's a little convoluted/inefficient, but simple for the user, which is more important... I think this is a case (temporal alignment in general really) where it would be really nice to have a how-to in the docs to make it easier to use. But...that's definitely outside the scope of this PR and would require some discussion. |
Correct. Yes, it is inefficient as of now. I will make some improvements from SpikeInterface. The advantage of this is just to have this code in only one place instead of having two ways of doing the same spread across the codebase. Plus, it is easier to explain, what happens if you pass both start_time and then use the time alignment methods? Which one has priority? are they additive or overwrite each other?
Yes, that would be nice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1158 +/- ##
==========================================
+ Coverage 90.69% 90.75% +0.05%
==========================================
Files 129 129
Lines 8189 8285 +96
==========================================
+ Hits 7427 7519 +92
- Misses 762 766 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I have been working on ecephys pipeline this week and these are some warnings that made it more difficult for me to find the errors. Besides, I am doing some other minor clean up.
starting_time
ofadd_electrical_series
as we have the time alignment methods now. We did the same in Support digital channels on NIDQ interface and use TimeSeries instead of ElecricalSeries for analog channels #1152