-
Notifications
You must be signed in to change notification settings - Fork 52
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
Deprecated numpy functions #97
Comments
Hi @jhkennedy, yes, I was thinking about submitting a PR, but I was working on the conda install directly, not on a clone of the repository. |
@adehecq @jhkennedy looks like setup.py is assuming a linux machine with paths to library files that don't necessarily match opencv installed from conda. We were recently working around this by adding a path to the hpp files under the conda environment directory, see master...relativeorbit:autoRIFT:condaInstall. The PR above fixes the lingering |
@adehecq to install into an existing conda environment, I think you can do:
based on the conda-forge recipe: @scottyhq I agree we should add an Really, the entire build and packaging system needs to be reworked, and quite a bit of geogrid/autorift could be refactored for usability. I'm planning later this summer or maybe early fall to start in on that. |
Since version 1.24, numpy has deprecated the aliases
np.bool
andnp.int
, which are still used at numerous occasions in autorift, leaving the user with an AttributeError.It can be easily fixed by replacing all occurrence of
np.bool
withbool
andnp.int
withint
.Also
np.asscalar
has also been removed in version 1.23. I think it can be safely replaced by callingint()
instead.The text was updated successfully, but these errors were encountered: