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

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

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

alejoe91
Copy link
Contributor

@alejoe91 alejoe91 commented Nov 4, 2024

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
Copy link
Contributor Author

alejoe91 commented Nov 4, 2024

Copy link
Contributor

@zm711 zm711 left a comment

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
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
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
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!

Copy link
Contributor

@zm711 zm711 left a comment

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
Copy link
Contributor Author

alejoe91 commented Nov 4, 2024

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

Copy link
Contributor

@zm711 zm711 left a comment

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
3 checks passed
@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