Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust parameters built-in start values for user-defined bounds in fitsignal #73

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

luisfabib
Copy link
Collaborator

Closes #72

In fitsignal now the parameter boundaries are validatef in two ways depending on the definition of the start values par0:

  • Built-in par0: if the user specifies lower/upper boundaries for a parameter but not its start values, then if the built-in start values would conflict with the new bounds, these are adapted (by setting them to the middle of the bound region).
  • User-defined par0: if the user specifies boundaries and start values, then the usual check is performed and if a conflict is found, then an error is prompted to request the user to correct the input.

…ounds

- added control statement to adapt start bounds if not user-defined
- done some refactoring of the code
- added new tests
@luisfabib luisfabib added the bugfix Patches something that isn't working label Jan 27, 2021
@luisfabib luisfabib added this to the 0.13.0 milestone Jan 27, 2021
@luisfabib luisfabib requested a review from stestoll January 27, 2021 10:36
@luisfabib luisfabib merged commit 182ef2f into main Mar 12, 2021
@stestoll stestoll deleted the fix/fitsignal_bounds branch March 19, 2021 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Patches something that isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fitsignal does not adjust default parameters to accommodate bounds.
2 participants