Skip to content

Commit

Permalink
Fix Plexon2 in dev tests (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin authored Sep 7, 2024
1 parent b01efeb commit 1498a50
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,15 @@ def __init__(self, file_path: FilePath, verbose: bool = True, es_key: str = "Ele
Allows verbosity.
es_key : str, default: "ElectricalSeries"
"""
stream_id = "3"
# TODO: when neo version 0.14.4 is out or higher change this to stream_name for clarify
import neo
from packaging.version import Version

neo_version = Version(neo.__version__)
if neo_version <= Version("0.13.3"):
stream_id = "3"
else:
stream_id = "WB"
assert Path(file_path).is_file(), f"Plexon file not found in: {file_path}"
super().__init__(
file_path=file_path,
Expand Down

0 comments on commit 1498a50

Please sign in to comment.