Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 36dfd61

Browse files
committed
simplify the banner disabling logic
1 parent a4b5fe9 commit 36dfd61

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

bluepyopt/ephys/simulators.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,11 @@ def __init__(self, dt=None, cvode_active=True, cvode_minstep=None,
3434
"./data/".
3535
"""
3636

37-
if platform.system() in ['Windows', 'Darwin']:
38-
# hoc.so does not exist on NEURON Windows
39-
# although \\hoc.pyd can work here, it gives an error for
40-
# nrn_nobanner_ line
41-
self.disable_banner = False
42-
self.banner_disabled = False
43-
else:
44-
self.disable_banner = True
45-
self.banner_disabled = False
46-
37+
# hoc.so does not exist on NEURON Windows or MacOS
38+
# although \\hoc.pyd can work here, it gives an error for
39+
# nrn_nobanner_ line
40+
self.disable_banner = platform.system() not in ['Windows', 'Darwin']
41+
self.banner_disabled = False
4742
self.mechanisms_directory = mechanisms_directory
4843
self.neuron.h.load_file('stdrun.hoc')
4944

0 commit comments

Comments
 (0)