Skip to content

OpenEphysBinary: Skip streams if folder doesn't exist - #1594

Merged
zm711 merged 3 commits into
NeuralEnsemble:masterfrom
alejoe91:open-ephys-partial
Nov 4, 2024
Merged

zm711 merged 3 commits into
NeuralEnsemble:masterfrom
alejoe91:open-ephys-partial

Conversation

@alejoe91

@alejoe91 alejoe91 commented Nov 4, 2024

Copy link
Copy Markdown
Contributor

This has come up several times in the past. If a user deletes a stream subfolder (even if irrelevane, e.g., MessageCenter) the RawIO fails to read the folder.

This PR simply skips missing folders.

@zm711 I'll add a test file to GIN

@alejoe91

alejoe91 commented Nov 4, 2024

Copy link
Copy Markdown
Contributor Author

@zm711 zm711 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Otherwise this looks good to me. Let me check the GIN really quick :)

@@ -1,4 +1,5 @@
import unittest
import pytest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What's this import for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed

@@ -1,4 +1,5 @@
import unittest
import pytest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I found a built in unit test function instead..removing!

Comment thread neo/test/rawiotest/test_openephysbinaryrawio.py Outdated

@zm711 zm711 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry one last question:

Are events and continuous completely separate? Or are they paired in some way? Or can I record just event or just continuous for different experiments? I just want to make sure the skipping stream strategy is best or are there cases where we should raise a hard error. For example what if someone deletes everything will this fail and say empty or would this pass with a bunch of warnings that could be shut off?

@alejoe91

alejoe91 commented Nov 4, 2024

Copy link
Copy Markdown
Contributor Author

they could be separate, but some have both. On the NEO side of things, they are separate :)

@zm711 zm711 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Okay works for me :)

@zm711
zm711 merged commit c96250a into NeuralEnsemble:master Nov 4, 2024
@zm711 zm711 added this to the 0.14.0 milestone Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants