-
Notifications
You must be signed in to change notification settings - Fork 36
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
make fun optional when fun_and_jac is provided #567
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov ReportAll modified and coverable lines are covered by tests ✅
🚀 New features to boost your workflow:
|
Hi @gauravmanmode, thanks for the PR. We want to support this, but there is one edge case that makes it slightly harder: As you can see here, My plan was to wait until version 0.6 where we can remove a lot of deprecated code that currently limits the order in which we can process user inputs. But we can keep your PR as a step in the right direction if you raise an error for the (very rare) case that |
you are right. i dont know how to handle this. since you said it is a rare case, i have raised a error and added a test. |
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.
Thanks @gauravmanmode, this is looking really good now. I only had a few small suggestions that should be very quick to address.
@janosg thanks for the suggestions. i hope this resolves them. |
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.
Thanks a lot; This is good to merge now!
Closes #518
Proposed Solution
if fun_and_jac is not None, and fun is not provided, set fun from fun_and_jac.
Also adjusted the docs.
I have added a test also.