-
Notifications
You must be signed in to change notification settings - Fork 19
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
Use of numpy.isclose method #63
Comments
Since the implementation [0] is only 23 lines, maybe we can just maintain our own version and hot-patch it in when we import numpy if it isn't there? [0] https://github.com/numpy/numpy/blob/v1.9.1/numpy/core/numeric.py#L2238 |
Is this an issue in 14.04 as well or only in 12.04? On Fri, Mar 6, 2015 at 3:06 PM, cdellin notifications@github.com wrote:
|
I believe the version of NumPy shipped with 14.04 has is_close. More importantly, I'm not sure if we want to use is_close in this context On Fri, Mar 6, 2015 at 3:08 PM, Pras Velagapudi notifications@github.com
|
OK, how is one supposed to programmatically decide if a configuration is close enough to another? If so, or if it's something slightly different, it'd be nice if that were in |
I see two places where dq_bounds = [(0, max) if (numpy.isclose(q_curr[i], q_min[i])) else
(min, 0) if (numpy.isclose(q_curr[i], q_max[i])) else
(min, max) for i, (min, max) in enumerate(bounds)] Here, I think it makes sense to use while not numpy.isclose(t, traj.GetDuration()): Here, I think this should be replaced with @siddhss5 Thoughts? |
@siddhss5, @mkoval: Has this been addressed/fixed already? I think @mkoval's suggestions make sense, and while I am fine with using |
Currently, to use the numpy.isclose method we need to install numpy from pip rather than apt. This is a bit cumbersome. Can we remove this dependency?
The text was updated successfully, but these errors were encountered: