Skip to content
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

Open
oschwengers opened this issue Nov 15, 2024 · 0 comments
Assignees
Labels
help wanted Extra attention is needed upstream Should be reported upstream

Comments

@oschwengers
Copy link
Owner

Unfortunately, somewhere on the last mile towards v1.10.0, the following numpy UserWarning started to appeared in each invocation of Bakta:

conda-envs/bakta-test/lib/python3.11/site-packages/numpy/_core/getlimits.py:555: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
conda-envs/bakta-test/lib/python3.11/site-packages/numpy/_core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  return self._float_to_str(self.smallest_subnormal)
conda-envs/bakta-test/lib/python3.11/site-packages/numpy/_core/getlimits.py:555: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
conda-envs/bakta-test/lib/python3.11/site-packages/numpy/_core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  return self._float_to_str(self.smallest_subnormal)

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.

@oschwengers oschwengers added help wanted Extra attention is needed upstream Should be reported upstream labels Nov 15, 2024
@oschwengers oschwengers self-assigned this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed upstream Should be reported upstream
Projects
None yet
Development

No branches or pull requests

1 participant