Skip to content

Commit

Permalink
Disable CVODE if neuron_dt is None
Browse files Browse the repository at this point in the history
  • Loading branch information
darshanmandge committed Nov 28, 2023
1 parent ca5c960 commit e04bee3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bluepyemodel/evaluation/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
from .protocols import ThresholdBasedProtocol
from .recordings import FixedDtRecordingCustom
from .recordings import LooseDtRecordingCustom
from ..emodel_pipeline.emodel_settings import EModelPipelineSettings

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -137,7 +138,7 @@ def define_protocol(protocol_configuration, stochasticity=False, use_fixed_dt_re
Returns:
Protocol
"""
cvode_active = True
cvode_active = False if EModelPipelineSettings.neuron_dt is None else True

recordings = []
for rec_conf in protocol_configuration.recordings:
Expand Down

0 comments on commit e04bee3

Please sign in to comment.