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

Fix intan kwargs #3054

Merged
merged 3 commits into from
Jun 20, 2024
Merged

Conversation

h-mayorquin
Copy link
Collaborator

The ignore_integrity_checks keyword that was added recently was not propagated to the kwargs. So running thing in parallel with a context other than fork was not working. This PR fixes it.

This also indicates that there are some missing tests there if this behavior was missing. I will think on how to add a general test to see that al kwargs are catched in another PR.

@h-mayorquin h-mayorquin added the extractors Related to extractors module label Jun 20, 2024
@h-mayorquin h-mayorquin self-assigned this Jun 20, 2024
@h-mayorquin h-mayorquin requested a review from alejoe91 June 20, 2024 04:45
Comment on lines 59 to 61
neo_version = packaging.version.parse(neo.__version__)
if neo_version > packaging.version.parse("0.13.1"):
self._kwargs.update(dict(ignore_integrity_checks=ignore_integrity_checks))
Copy link
Member

Choose a reason for hiding this comment

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

This should be done in line 45 also no ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is already handled inside the mapping function:

neo_version = packaging.version.parse(neo.__version__)
if neo_version > packaging.version.parse("0.13.1"):
neo_kwargs = {"filename": str(file_path), "ignore_integrity_checks": ignore_integrity_checks}
else:
neo_kwargs = {"filename": str(file_path)}
return neo_kwargs

@h-mayorquin h-mayorquin merged commit 328bba0 into SpikeInterface:main Jun 20, 2024
11 checks passed
@h-mayorquin h-mayorquin deleted the fix_intan_kwargs branch June 20, 2024 14:56
@h-mayorquin
Copy link
Collaborator Author

Tested for my own data with forkserve.

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.

2 participants