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

Commit 120b1e9

Browse files
author
Tanguy Pierre Louis Damart
committed
Add warning to windows case
1 parent 1430db7 commit 120b1e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bluepyopt/ephys/protocols.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@ def _reduce_method(meth):
268268
# Spwan context would reset NEURON properties, such as dt.
269269
if sys.platform == 'win32':
270270
multiprocessing_context = multiprocessing.get_context('spawn')
271+
if (
272+
sim is not None and not sim.cvode_active and
273+
sim.dt != 0.025
274+
):
275+
logger.warning("On Windows, evaluation might break when"
276+
"using non-default fixed time steps.")
271277
else:
272278
multiprocessing_context = multiprocessing.get_context('fork')
273279

0 commit comments

Comments
 (0)