biophysics_fittingL5tt_parameter_setupset_param

set_param

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

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

Example:

cell\_param = {'a': {'b': {'c': 2}}}
params = {'a.b.c': 3}
set\_param(cell\_param, params)
# returns {'a': {'b': {'c': 3}}}
Parameters:
  • cell_param ( – py:class`~:py:class:~single_cell_parser.parameters.ParameterSet` | dict): The cell parameter nested dictionary.

  • params (dict) – The parameter flat dictionary.

Returns:

The updated cell_param.

Return type:

dict