biophysics_fittingL5tt_parameter_setupset_many_param

set_many_param

biophysics_fitting.L5tt_parameter_setup.set_many_param(cell_param, params=None)

Updates cell_param given a dict of params in the dot naming convention.

This method is almost identical to set_param(), but it has a different behavior when a parameter name appears both as a top-level key and as a nested key in params. In this case, the top-level key will be used as the master value.

Example:

cell\_param = {'a': {'b': {'c': 0}}}
params = {'a': True, 'a.b.c': False}
set\_many\_param(cell\_param, params)
# Output: {'a': {'b': {'c': True}}}, NOT {'a': {'b': {'c': False}}}
Parameters:
  • cell_param (ParameterSet | dict) – The cell parameter nested dictionary.

  • params (dict) – The parameter flat dictionary.

Returns:

The updated cell_param.

Return type:

dict