-
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
Add ignore_timestamps_errors
to OpenEphys interfaces
#579
Conversation
when |
if ignore_timestamps_errors and self.recording_extractor.has_time_vector(): | ||
for segment_index in range(self.recording_extractor.get_num_segments()): | ||
self.recording_extractor._recording_segments[segment_index].time_vector = None | ||
warn( | ||
"The recording has a time vector but the timestamps might be discontinuous. " | ||
"The time vector was reset to None to avoid writing these timestamps with the electrical series." | ||
) | ||
|
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.
@CodyCBakerPhD how about this?
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.
Intuitively seems perfectly fine - only thing to check is if the logic on the SI side relies on value of the .time_vector is None
rather than on the logic hasattr(recording_segment, "time_vector")
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.
No matter what we have time to polish this; this shouldn't be merged to main
until both neo and SI get new releases with the upstream fixes
Tye lab repo will have to pin to either this branch (to stay up-to-date with other things updated from main) or a commit from this branch
This reverts commit b474499.
Codecov Report
@@ Coverage Diff @@
## main #579 +/- ##
==========================================
- Coverage 90.78% 90.74% -0.05%
==========================================
Files 103 103
Lines 5374 5378 +4
==========================================
+ Hits 4879 4880 +1
- Misses 495 498 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@weiglszonja Can you remind me; do we still need or even want this exposure, or is the plan still to try to fix |
@CodyCBakerPhD I think we shouldn't expose it for now, can be closed. The plan is to fix the underlying files |
To fix catalystneuro/tye-lab-to-nwb#29
ignore_timestamps_errors
toOpenEphysLegacyRecordingExtractor
Addignore_timestamps_errors
toOpenEphysLegacyRecordingExtractor
SpikeInterface/spikeinterface#2043