Set parameter expression that contains the independent variable in python lmfit
问题 I have dictionary of parameters with unknown number of those parameters (comes from other function), I looped through the dictionary to add its components to an lmfit models as follows: from lmfit import Parameters fit_params = Parameters() for params_name in dict.keys(): current_param = dict[param_name] fit_params.add(param_name) I wanted to add expression to each parameter with fit_params[param_name].set(expr = 'some_expression_in_function_of_x') where x is my independent variable, when