Skip to content

Conversation

@gadial
Copy link
Contributor

@gadial gadial commented Aug 29, 2021

Summary

This PR addresses issue #103.

Details and comments

@yaelbh
Copy link
Collaborator

yaelbh commented Aug 29, 2021

A related question is whether we expect to remove bounds (#190, #320)

Copy link
Collaborator

@yaelbh yaelbh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's correct, but it will help if @nkanazawa1989 also takes a look

@yaelbh yaelbh linked an issue Oct 20, 2021 that may be closed by this pull request
Copy link
Collaborator

@nkanazawa1989 nkanazawa1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks correct to me.

Copy link
Collaborator

@nkanazawa1989 nkanazawa1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I misunderstood the issue.

Copy link
Collaborator

@nkanazawa1989 nkanazawa1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the issue and PR are outdated by #390. Now the bounds and init guesses are set via set_if_empty method. Usually the default values entering to the user options are None and actual numbers are provided in the guess method (this is because some bounds are also computed based on the curve data, IRB and RB is just a special case that we know these numbers without having actual data). I think what is implemented now is correct behavior and we don't need to change it.

If user intentionally provides these bounds or guesses, that values are passed to the user options dict and the dict protects itself from updating by algorithmic bounds or guesses.

@yaelbh
Copy link
Collaborator

yaelbh commented Oct 20, 2021

@gadial Do you agree with @nkanazawa1989 ? Should we close this?

@nkanazawa1989
Copy link
Collaborator

Agreed.

@yaelbh yaelbh closed this Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve code for bounds in RBAnalysis._setup_fitting

3 participants