Skip to content

Commit 310aca2

Browse files
authored
Merge pull request #1766 from NeuralEnsemble/black-formatting
Black formatting
2 parents 7c899cc + e938292 commit 310aca2

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

neo/io/kwikio.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
import importlib.metadata
2626
from packaging.version import Version, parse
2727

28-
numpy_version = parse(importlib.metadata.version('numpy'))
28+
numpy_version = parse(importlib.metadata.version("numpy"))
29+
2930

3031
class KwikIO(BaseIO):
3132
"""
@@ -64,10 +65,12 @@ def __init__(self, filename):
6465
"""
6566

6667
if numpy_version >= Version("2.3.0"):
67-
deprecation_msg = ("As the kwik package is no longer actively maintained it only works with NumPy < 2.3.0 and your environment "
68-
f"has {numpy_version}. Downgrade your NumPy version to use this IO")
68+
deprecation_msg = (
69+
"As the kwik package is no longer actively maintained it only works with NumPy < 2.3.0 and your environment "
70+
f"has {numpy_version}. Downgrade your NumPy version to use this IO"
71+
)
6972
raise NeoReadWriteError(deprecation_msg)
70-
73+
7174
from klusta import kwik
7275

7376
BaseIO.__init__(self)

neo/test/iotest/test_kwikio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import importlib.metadata
88
from packaging.version import Version, parse
99

10-
kwik_spec = importlib.util.find_spec('klusta')
10+
kwik_spec = importlib.util.find_spec("klusta")
1111
# kwik no longer works with recent versions of numpy
12-
numpy_version = parse(importlib.metadata.version('numpy'))
13-
numpy_okay = numpy_version < Version('2.3.0')
12+
numpy_version = parse(importlib.metadata.version("numpy"))
13+
numpy_okay = numpy_version < Version("2.3.0")
1414
if kwik_spec is not None and numpy_okay:
1515
HAVE_KWIK = True
1616
else:

neo/test/rawiotest/test_openephysbinaryrawio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def test_no_sync(self):
7373
with self.assertRaises(ValueError):
7474
with self.assertWarns(DeprecationWarning):
7575
rawio_no_sync = OpenEphysBinaryRawIO(
76-
self.get_local_path("openephysbinary/v0.6.x_neuropixels_multiexp_multistream"), load_sync_channel=True
76+
self.get_local_path("openephysbinary/v0.6.x_neuropixels_multiexp_multistream"),
77+
load_sync_channel=True,
7778
)
7879
rawio_no_sync.parse_header()
7980

0 commit comments

Comments
 (0)