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

Expose reading attempts in Plexon2 #3401

Merged
merged 9 commits into from
Oct 18, 2024

Conversation

h-mayorquin
Copy link
Collaborator

We have been working on this neo, but I forgot to expose it here in Spikeinterface. It would be great if we could expose it here before the next patch release.

@h-mayorquin
Copy link
Collaborator Author

Ah, not release yet in neo, let me protect this so it is ready.

@h-mayorquin h-mayorquin marked this pull request as ready for review September 12, 2024 16:18
@h-mayorquin h-mayorquin self-assigned this Sep 12, 2024
@h-mayorquin h-mayorquin added extractors Related to extractors module labels Sep 16, 2024
Copy link
Collaborator

@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.

One typo and one comment @h-mayorquin :)

src/spikeinterface/extractors/neoextractors/plexon2.py Outdated Show resolved Hide resolved
@@ -28,6 +28,10 @@ class Plexon2RecordingExtractor(NeoBaseRecordingExtractor):
ids: ["source3.1" , "source3.2", "source3.3", "source3.4"]
all_annotations : bool, default: False
Load exhaustively all annotations from neo.
readding_attemps : int, default: 25
Number of attempts to read the file before raising an error
This opening process is somewhat unreliable and might fail occasionally. Adjust this higher
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to highlight that this is more common on Linux.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You think that would be helpful? if so, yes, by all means, can you make a suggestion?

Copy link
Collaborator

Choose a reason for hiding this comment

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

No I guess not. Since we are already forcing the tries (once Neo > 0.13.3 is out) then explaining when the failures occurs doesn't actually affect the user. Other than they could turn it down to 1, but it automatically only uses what it needs. So I changed my mind. I think this is good as is.

@zm711
Copy link
Collaborator

zm711 commented Sep 20, 2024

Weird test failure? Was the wrong info being bubbled up? Although it worked on Windows....

@h-mayorquin
Copy link
Collaborator Author

This is an environment issue. An older version of neo is being installed for some reason.

@alejoe91
Copy link
Member

@h-mayorquin the stream name in the test seem to be triggering an error. Can you check?

@h-mayorquin
Copy link
Collaborator Author

@h-mayorquin the stream name in the test seems to be triggering an error. Can you check?

It is what I mentioned to Zach I think Something in our CI is not installing neo dev! : O

I will check it.

@zm711
Copy link
Collaborator

zm711 commented Sep 25, 2024

We were missing the after-release. Fixed here #3440.

@h-mayorquin
Copy link
Collaborator Author

Thanks guys @zm711 @alejoe91 that fixed it.

@h-mayorquin
Copy link
Collaborator Author

This is ready.

@samuelgarcia
Copy link
Member

ok for me.
@alejoe91 you want to check ?

@alejoe91 alejoe91 merged commit a606364 into SpikeInterface:main Oct 18, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extractors Related to extractors module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants