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

Error when running Session() #16

Open
PiezaKake opened this issue Sep 23, 2024 · 3 comments
Open

Error when running Session() #16

PiezaKake opened this issue Sep 23, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@PiezaKake
Copy link

Hi I am getting the following error

session = Session(directory)
Searching directory: 2024-09-23_13-41-02
Found recording format: Binary
Dot indexing is not supported for variables of this type.

Error in BinaryRecording/loadContinuous (line 63)
stream.metadata.names{j} = self.info.continuous(i).channels(j).channel_name;

Error in BinaryRecording (line 40)
self = self.loadContinuous();

Error in BinaryRecording.detectRecordings (line 240)
recordings{end+1} = BinaryRecording(recordingDirectories{recIdx}, expIdx, recIdx);

Error in RecordNode/detectRecordings (line 95)
self.recordings = BinaryRecording.detectRecordings(self.directory);

Error in RecordNode (line 71)
self.detectRecordings();

Error in Session/detectRecordNodes (line 70)
self.recordNodes{end+1} = RecordNode(paths{i});

Error in Session (line 61)
self.detectRecordNodes();

Any help is much appreciated

@medengineer medengineer self-assigned this Sep 23, 2024
@medengineer
Copy link
Member

Hi,

Can you please attach the structure.oebin file from your recording to help debug.

Thanks!

@PiezaKake
Copy link
Author

Thanks you so much for the prompt reply. In my experiments, I record 3 data streams with a record node. (i)The AP from NEUROPIX-PXI, the (ii) LFP from NEUROPIX-PXI, and (iii) a NI-DAQMX. The NEUROPIX-PXI allows the recording of up to 384 channels from a Neuropixels 1.0 probe, and optionally an extra channel with the sync pulses from the NI PXIe. Only when I opt to record the sync pulses this error occurs. Please find attached the structure file. I had to change the extenstion to .txt, because github did not allow me to upload with the .oebin extension.
structure.txt

@medengineer medengineer added the bug Something isn't working label Sep 23, 2024
@medengineer
Copy link
Member

Thanks for reporting this.

A temporary workaround is changing the last occurrence of (j) to {j} in BinaryRecording/loadContinuous (line 63):

stream.metadata.names{j} = self.info.continuous(i).channels{j}.channel_name;

This should allow you to load the data in the case where the extra SYNC channel is included in the recording.

I will confirm exactly what is causing this discrepancy in the lab tomorrow and offer a more robust fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants