-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improve parameters and full_parameters #3509
base: master
Are you sure you want to change the base?
Conversation
It's brand new so it's in the range of time that it's like.. sure? If @TorkelE is onboard. I do think making it all one function is just simpler API. Condense @AayushSabharwal take it from here. |
Yep, looks good. I intentionally didn't document the |
Yes, I fully agree. This PR is definitely in that direction. I can still see the use for one easy-to-use function to get all parameters/equations, though, which is equivalent to calling the "normal" getter with all flags enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're making these flags public, they need tests
I
I understand the name changes are subjective. I just feel these shorter names are more future-proof. Just let me know if I should revert any or all of them, and I am happy to do it. |
IMO the longer names are more clear (as it makes it clear that we are talking about parameters), but I don't have a strong opinion here. Maybe |
The longer names can get a bit annoying, but I kind of feel like they should be plural? |
I agree that |
Sounds good to me. Given that they are keargs to the "parameters" function, I don't mind not having "parameters" in the kwarg names as well. |
"Fix" #3507, or at least try to prevent others from running into the same.
Is it breaking to rename the keyword argument
initial_parameters
toinitial
? I would preferinitial
anddependent
overinitial_parameters
anddependent_parameters
. I think the latter is too verbose and would grow out of hand if more flags are added in the future.