diff --git a/bluepyemodel/emodel_pipeline/emodel_settings.py b/bluepyemodel/emodel_pipeline/emodel_settings.py index 4c3eeb96..3437df50 100644 --- a/bluepyemodel/emodel_pipeline/emodel_settings.py +++ b/bluepyemodel/emodel_pipeline/emodel_settings.py @@ -78,6 +78,7 @@ def __init__( save_recordings=False, neuron_dt=None, cvode_minstep=0.0, + use_params_for_seed=True, max_threshold_voltage=-30, strict_holding_bounds=True, max_depth_holding_search=7, @@ -249,6 +250,8 @@ def __init__( named `recordings`. neuron_dt (float): time step of the NEURON simulator. If ``None``, cvode will be used. cvode_minstep (float): minimum time step allowed when using cvode. + use_params_for_seed (bool): use a hashed version of the parameter + dictionary as a seed for the simulator max_threshold_voltage (float): upper bound for the voltage during the search for the threshold or rheobase current (see SearchThresholdProtocol). strict_holding_bounds (bool): if True, the minimum and maximum values for the current @@ -294,6 +297,7 @@ def __init__( self.stochasticity = stochasticity self.neuron_dt = neuron_dt self.cvode_minstep = cvode_minstep + self.use_params_for_seed = use_params_for_seed # Settings related to the optimisation self.start_from_emodel = start_from_emodel diff --git a/bluepyemodel/evaluation/evaluator.py b/bluepyemodel/evaluation/evaluator.py index 00b6de6b..0ffd9833 100644 --- a/bluepyemodel/evaluation/evaluator.py +++ b/bluepyemodel/evaluation/evaluator.py @@ -992,7 +992,7 @@ def create_evaluator( fitness_protocols=fitness_protocols, fitness_calculator=fitness_calculator, sim=simulator, - use_params_for_seed=True, + use_params_for_seed=pipeline_settings.use_params_for_seed, timeout=timeout, ) cell_eval.prefix = cell_model.name