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 : NTParameterSet

The cell parameter nested dictionary.

params : dict

The parameter flat dictionary.

Returns:

The updated cell_param.

Return type:

dict