Params

lumicks.pylake.fitting.parameters.Params

class Params(**kwargs)

Model parameters.

Examples

import lumicks.pylake as lk
fit = lk.FdFit(lk.ewlc_odijk_distance("my_model"))

print(fit.params)  # Prints the model parameters
fit["test_parameter"].value = 5  # Set parameter test_parameter to 5
fit["fix_me"].fixed = True  # Fix parameter fix_me (do not fit)

# Copy parameters from another Parameters into this one.
parameters.update_params(other_parameters)

# Copy the parameters from an earlier fit into the combined model.
fit_combined_model.update_params(fit)
update_params(other)

Sets parameters if they are found in the target parameter list.

Parameters:

other (Params) –