Skip to content

Fix intan kwargs#3054

Merged
h-mayorquin merged 3 commits intoSpikeInterface:mainfrom
h-mayorquin:fix_intan_kwargs
Jun 20, 2024
Merged

Fix intan kwargs#3054
h-mayorquin merged 3 commits intoSpikeInterface:mainfrom
h-mayorquin:fix_intan_kwargs

Conversation

@h-mayorquin
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@h-mayorquin h-mayorquin deleted the fix_intan_kwargs branch June 20, 2024 14:56
@h-mayorquin
Copy link
Copy Markdown
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