Skip to content

Commit

Permalink
Merge pull request #125 from BlueBrain/use-params-fro-seed
Browse files Browse the repository at this point in the history
have use_params_for_seed as a setting
  • Loading branch information
AurelienJaquier committed Apr 8, 2024
2 parents a099656 + 266c5c1 commit 9ad2a7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bluepyemodel/emodel_pipeline/emodel_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bluepyemodel/evaluation/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ad2a7b

Please sign in to comment.