-
Notifications
You must be signed in to change notification settings - Fork 17
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
np.float deprecation error #143
Comments
Do we have any specific examples? Doing a quick grep on np.float only returns 5 instances in the entire code base, one in BayesianBlocks and four in pyBurstAnalysisGUI. If that's really all there is, this will be quick. |
If you install a fresh version of the tools and try to run the Python thread, you should get the error when running UnbinnedAnalysis. Make sure that we're not using any of the other deprecated data types in 1.20.0. It looks like Numpy is up to 1.25.0, so check if there was anything else deprecated in later versions that would affect us, too. |
Just to be thorough: np.int is also going away. |
That was my plan. I was going to work through all of deprecation notes and see what I find. |
I am working with UnbinnedAnalysis and the error still persists. I am on fermitools 2.2.0. Is there a new release of the software yet? |
If working in python, please try the following before importing the UnbinnedAnalysis
|
Numpy versions >1.2.0 deprecated some data types used by the Python code in the Fermitools, so recent installs of the tools have resulted errors when running pyLikelihood, e.g.,
The FSSC needs to go through the Fermitool python code, fix any places this occurs, and check for any other deprecation in recent Numpy releases that might affect the tools.
Until we get it fixed, users can get a working version by pinning the Numpy version to the last Numpy that allowed deprecated types, e.g.,
The text was updated successfully, but these errors were encountered: