Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkilic committed Aug 14, 2024
1 parent 4986c1c commit bedb745
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/bluecellulab-bb5-tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
PIP_INDEX_URL := https://pypi.python.org/simple
NEURON_MODULE_OPTIONS := '-nogui'
TESTS_DIR := tests
MECHANISMS_DIR := ./../tests/mechanisms/
MECHANISMS_DIR := ./../mechanisms/
PYTEST_OPTS := --numprocesses=auto --timeout=600 -vsx --forked

# Default rule (similar to 'testenv' in tox)
Expand Down
24 changes: 12 additions & 12 deletions tests/bluecellulab-bb5-tests/tests/test_ssim.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_compare_traces(self):
assert len(voltage_bglib) == len(time_bglib) == 1000

voltage_bglibpy = self.ssim_bglibpy.get_voltage_trace(self.gid)[
0 : len(voltage_bglib)
0: len(voltage_bglib)
]

rms_error = rms(voltage_bglibpy, voltage_bglib)
Expand Down Expand Up @@ -176,7 +176,7 @@ def test_compare_traces(self):
assert len(voltage_bglib) == 1000

voltage_bglibpy = self.ssim_bglibpy.get_voltage_trace(self.gid)[
0 : len(voltage_bglib)
0: len(voltage_bglib)
]

rms_error = rms(voltage_bglibpy, voltage_bglib)
Expand All @@ -189,7 +189,7 @@ def test_disable_replay(self):

voltage_bglibpy_withoutreplay = (
self.ssim_bglibpy_withoutreplay.get_voltage_trace(self.gid)[
0 : len(voltage_bglib)
0: len(voltage_bglib)
]
)

Expand Down Expand Up @@ -231,7 +231,7 @@ def test_compare_traces(self):
assert len(voltage_bglib) == 1000

voltage_bglibpy = self.ssim_bglibpy.get_voltage_trace(self.gid)[
0 : len(voltage_bglib)
0: len(voltage_bglib)
]

rms_error = rms(voltage_bglibpy, voltage_bglib)
Expand Down Expand Up @@ -273,7 +273,7 @@ def test_compare_traces(self):
assert len(voltage_bglib) == 1000

voltage_bglibpy = self.ssim_bglibpy.get_voltage_trace(self.gid)[
0 : len(voltage_bglib)
0: len(voltage_bglib)
]

rms_error = rms(voltage_bglibpy, voltage_bglib)
Expand Down Expand Up @@ -424,7 +424,7 @@ def test_compare_traces(self):
assert len(self.voltage_bglib_mvr) == 1000

voltage_bglibpy_mvr = self.ssim_bglibpy_mvr.get_voltage_trace(self.gid)[
0 : len(self.voltage_bglib_mvr)
0: len(self.voltage_bglib_mvr)
]

rms_error = rms(voltage_bglibpy_mvr, self.voltage_bglib_mvr)
Expand Down Expand Up @@ -482,7 +482,7 @@ def test_compare_traces(self):
assert len(voltage_bglib) == 1000

voltage_bglibpy = self.ssim_bglibpy.get_voltage_trace(self.gid)[
0 : len(voltage_bglib)
0: len(voltage_bglib)
]

rms_error = rms(voltage_bglibpy, voltage_bglib)
Expand All @@ -495,7 +495,7 @@ def test_disable_minis(self):

voltage_bglibpy_withoutminis = self.ssim_bglibpy_withoutminis.get_voltage_trace(
self.gid
)[0 : len(voltage_bglib)]
)[0: len(voltage_bglib)]

rms_error = rms(voltage_bglibpy_withoutminis, voltage_bglib)

Expand Down Expand Up @@ -546,7 +546,7 @@ def test_compare_traces(self):
assert len(voltage_bglib) == 1000

voltage_bglibpy = self.ssim_bglibpy.get_voltage_trace(self.gid)[
0 : len(voltage_bglib)
0: len(voltage_bglib)
]

rms_error = rms(voltage_bglibpy, voltage_bglib)
Expand All @@ -559,7 +559,7 @@ def test_disable_stimuli(self):

voltage_bglibpy_withoutstim = self.ssim_bglibpy_withoutstim.get_voltage_trace(
self.gid
)[0 : len(voltage_bglib)]
)[0: len(voltage_bglib)]

rms_error = rms(voltage_bglibpy_withoutstim, voltage_bglib)
assert rms_error > 1.0
Expand Down Expand Up @@ -608,7 +608,7 @@ def test_compare_traces(self):
assert len(voltage_bglib) == 1000

voltage_bglibpy = self.ssim_bglibpy.get_voltage_trace(self.gid)[
0 : len(voltage_bglib)
0: len(voltage_bglib)
]

rms_error = rms(voltage_bglibpy, voltage_bglib)
Expand All @@ -622,7 +622,7 @@ def test_disable_stimuli(self):

voltage_bglibpy_withoutstim = self.ssim_bglibpy_withoutstim.get_voltage_trace(
self.gid
)[0 : len(voltage_bglib)]
)[0: len(voltage_bglib)]

rms_error = rms(voltage_bglibpy_withoutstim, voltage_bglib)
assert rms_error > 20.0
Expand Down

0 comments on commit bedb745

Please sign in to comment.