Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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 · 2 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
@oschwengers oschwengers pinned this issue Nov 25, 2024
@eri-lim
Copy link

eri-lim commented Jan 21, 2025

Hi, just for info - would like to report that this has occurred in v1.10.1 as well.

@pjbiggs
Copy link

pjbiggs commented Jan 22, 2025

Hi - and also in v1.10.3 too. thanks.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
help wanted Extra attention is needed upstream Should be reported upstream
Projects
None yet
Development

No branches or pull requests

3 participants