Skip to content

Commit

Permalink
do not set frozen flags for the parameters for running purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey committed Jun 6, 2023
1 parent 70aaacb commit cae53e3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions emodelrunner/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,8 @@ def load_unoptimized_parameters(params_path, v_init, celsius):
param_name = param_config["name"]

if isinstance(param_config["val"], (list, tuple)):
is_frozen = False
value = None

else:
is_frozen = True
value = param_config["val"]

if is_global:
Expand All @@ -227,7 +224,6 @@ def load_unoptimized_parameters(params_path, v_init, celsius):
ephys.parameters.NrnGlobalParameter(
name=param_name,
param_name=param_name,
frozen=is_frozen,
value=value,
)
)
Expand All @@ -237,7 +233,6 @@ def load_unoptimized_parameters(params_path, v_init, celsius):
name=f"{param_name}.{sectionlist}",
obj=dist,
attr_name=param_name,
frozen=is_frozen,
value=value,
)
)
Expand All @@ -257,7 +252,6 @@ def load_unoptimized_parameters(params_path, v_init, celsius):
param_name=param_name,
value_scaler=dist,
value=value,
frozen=is_frozen,
locations=seclist_locs,
)
)
Expand All @@ -268,7 +262,6 @@ def load_unoptimized_parameters(params_path, v_init, celsius):
param_name=param_name,
value_scaler=dist,
value=value,
frozen=is_frozen,
locations=seclist_locs,
)
)
Expand Down

0 comments on commit cae53e3

Please sign in to comment.