-
Notifications
You must be signed in to change notification settings - Fork 190
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
Add safeguard for probeinterface use of read_spikegadgets
#2833
Add safeguard for probeinterface use of read_spikegadgets
#2833
Conversation
read_spikegadgets
There was a problem hiding this 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": |
There was a problem hiding this comment.
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"):
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, added.
The failing tests are due to a recent zarr upgrade, which is breaking |
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.