-
Notifications
You must be signed in to change notification settings - Fork 115
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
Deal with scipy unceremoniously removing wrap_function
#184
Conversation
Thanks for fixing this! |
Change-Id: I9072119de859a36bfa19ccf0e3e75674090d7244
7715d7d
to
f3de61b
Compare
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.
LGTM
For the record, it is a verbatim copy from https://github.com/scipy/scipy/blob/maintenance/1.6.x/scipy/optimize/optimize.py#L454.
Consider adding the https://github.com/scipy/scipy/blob/maintenance/1.6.x/LICENSE.txt to the top of this file referring to wrap_function.
added |
recirq/optimize/__init__.py
Outdated
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
def wrap_function(function, args): |
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.
I generally don't think it's a great idea to put code in init files. Is there a reason we can't put this in its own file and import it into the package?
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.
done, moved
recirq/optimize/__init__.py
Outdated
def wrap_function(function, args): | ||
# This function existed in scipy prior to 1.7 | ||
# It must not have been considered part of the public API, as it has | ||
# disappeared without a trace. |
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.
Should this be a docstring instead of line comments?
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.
done
Change-Id: I6b0c01943089170177ed133eafc310de4328ef70
No description provided.