OxIonics / ionics_fits

Small python fitting library with an emphasis on Atomic Molecular and Optical Physics
Apache License 2.0
0 stars 0 forks source link

Add warning when user estimate is provided for fixed parameter #115

Closed AUTProgram closed 6 months ago

AUTProgram commented 8 months ago

When param.fixed_to is not None, the parameter will be held fixed at the specified value during a fit. However, if the user does not remember that the parameter is being held fixed and sets param.user_estimate to some value with the expectation that it will be used for parameter estimation, the value provided by user is ignored without any warning. This is not a huge problem, but I think it would be helpful if a warning (or other log message) was emitted during the fit in this case, to let the user know that their estimate won't do anything.