-
Notifications
You must be signed in to change notification settings - Fork 58
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
Numpy.core.getlimits.py UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. #347
Comments
Hi, just for info - would like to report that this has occurred in v1.10.1 as well. |
Hi - and also in v1.10.3 too. thanks. |
Thanks for the update. I'm pretty sure, that this error is actually not caused by Bakta itself but some 3rd /4th/5th-party dependency within the Bakta Conda environment. Unfortunately, I have currently no clue what is causing this and also no resources to dive deeper into this. But, since this is not an error but only a warning I tend to let it go and hope that someone will fix this within the causing Conda package. |
Thank you. Just to clarify, it was a fatal error - something like in #346, and then Bakta crashes with that Numpy message. So, just notifying in case anyone else experiences this. |
OK, thanks for letting us know, but these are two unrelated things: one warning (the subject of this issue) and then, an addition fatal error. To keep these things apart from each other, could you please open a dedicated issue for the fatal error describing it in more detail (input/output/logs/etc)? |
I went to obtain the details but it seems I am now unable to reproduce the crash (it runs again, but also I have redownloaded the database in the process, using the light database). Thanks for the instructions regarding the error. If I encounter it reproducibly, I will open a dedicated issue. Thank you for your hard work on Bakta! |
Hi, I added this to import warnings
warnings.simplefilter("error", UserWarning) And got the following Traceback. I will suggest checking settings related with color. Or, maybe different versions of matplotlib + numpy combination?
|
Thank you very much @snail123815 ! This really helps to trace and identify the source of this behavior. However, I'm still puzzled how to deactivate this... |
So am I @oschwengers. After some search it seems that the problem is more upstream and not consistent in different environments. Seems to be related with the building of some packages with I found this post Qiskit/qiskit-aer#1469 which might be useful. For me, downgrade Or ignore this warning explicitly by adding in the import warnings
warnings.filterwarnings("ignore", message="The value of the smallest subnormal for") |
Unfortunately, somewhere on the last mile towards v1.10.0, the following
numpy
UserWarning
started to appeared in each invocation of Bakta:As reported in #346 and discudded here, it seems to be related to some
ffast-math
compilation flag set by any of Bakta's dependency - or dependency's dependency...If someone has an idea or solution how to solve or circumvent this, please let us know.
The text was updated successfully, but these errors were encountered: