Skip to content

Add safeguard for probeinterface use of read_spikegadgets#2833

Merged
alejoe91 merged 4 commits intoSpikeInterface:mainfrom
h-mayorquin:add_safeguard_to_spikegadgets
May 14, 2024
Merged

Add safeguard for probeinterface use of read_spikegadgets#2833
alejoe91 merged 4 commits intoSpikeInterface:mainfrom
h-mayorquin:add_safeguard_to_spikegadgets

Conversation

@h-mayorquin
Copy link
Collaborator

We have the read_spikegadgets reader in an un unreleased version of probeinterface. I am imaging that tere will be a release of probeinterface soon but unless #2827 is intended to come together with the next probeinterface release this will be needed.

@h-mayorquin h-mayorquin self-assigned this May 12, 2024
@h-mayorquin h-mayorquin added the packaging Related to packaging/style label May 12, 2024
@h-mayorquin h-mayorquin changed the title Add safeguard for probeinterface Add safeguard for probeinterface use of read_spikegadgets May 12, 2024
Copy link
Member

@alejoe91 alejoe91 left a comment

Choose a reason for hiding this comment

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

let's use packaging

probegroup = probeinterface.read_spikegadgets(file_path, raise_error=False)
probegroup = None
# If version of probeinterface is larger than 0.2.21 then try this method
if probeinterface.__version__ > "0.2.21":
Copy link
Member

Choose a reason for hiding this comment

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

@h-mayorquin let's use packaging:

from packaging.version import parse
        if parse(probeinterface.__version__) > parse("0.2.21"):

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Are you fine with adding packacing as a dependency?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, added.

@alejoe91
Copy link
Member

alejoe91 commented May 14, 2024

The failing tests are due to a recent zarr upgrade, which is breaking pynwb.Zarr:
hdmf-dev/hdmf-zarr#192

@alejoe91 alejoe91 merged commit ec5925c into SpikeInterface:main May 14, 2024
@h-mayorquin h-mayorquin deleted the add_safeguard_to_spikegadgets branch May 14, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packaging Related to packaging/style

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants