Skip to content
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 convert non-neural channels to ElectricalSeries on OpenEphysBinaryRecordingInterface #1179

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

h-mayorquin
Copy link
Collaborator

Should close #1023

Part of an effort like the one in:

#1152

Will add another PR at some point to transform the non-neural channels to a TimeSeries automatically.

@h-mayorquin h-mayorquin marked this pull request as ready for review February 7, 2025 23:08
@@ -108,6 +108,13 @@ def __init__(
if stub_test:
self.subset_channels = [0, 1]

# Check if the recording has ADC channels
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the data from Kind Lab, they have AUX (AUX1, AUX2, AUX3), not ADC, for the accelerometer signals.
Should we go the other way around? --> checking that the channel_id contains CH, and only if it contains CH we add that as ElectricalSeries.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a great suggestion. Let me debug against that data. Could you talk to them to see if we can see use some of their data in our gin tests? I can then stub some of that .

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, but I just checked and your data is legacy, right? This PR is for the binary format where the channels are only ADC:

https://open-ephys.github.io/gui-docs/User-Manual/Recording-data/Open-Ephys-format.html
https://open-ephys.github.io/gui-docs/User-Manual/Recording-data/Binary-format.html

Your data might need another PR altogether.

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.73%. Comparing base (a896663) to head (b773949).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1179   +/-   ##
=======================================
  Coverage   89.72%   89.73%           
=======================================
  Files         129      129           
  Lines        8420     8425    +5     
=======================================
+ Hits         7555     7560    +5     
  Misses        865      865           
Flag Coverage Δ
unittests 89.73% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
.../ecephys/openephys/openephysbinarydatainterface.py 97.61% <100.00%> (+0.32%) ⬆️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Selecting channels from OpenEphys data to convert
2 participants