Skip to content

Commit

Permalink
Add warning to windows case
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanguy Pierre Louis Damart committed Jun 5, 2023
1 parent 1430db7 commit 3d71c24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bluepyopt/ephys/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ def _reduce_method(meth):
# Spwan context would reset NEURON properties, such as dt.
if sys.platform == 'win32':
multiprocessing_context = multiprocessing.get_context('spawn')
if sim is not None and not self.cvode_active and sim.dt != 0.025:
logger.warning("On Windows, evaluation might break when using "
"non-default fixed time steps.")
else:
multiprocessing_context = multiprocessing.get_context('fork')

Expand Down

0 comments on commit 3d71c24

Please sign in to comment.