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

Warnings about precision loss although using floats #3

Open
brockho opened this issue May 19, 2020 · 1 comment
Open

Warnings about precision loss although using floats #3

brockho opened this issue May 19, 2020 · 1 comment

Comments

@brockho
Copy link
Collaborator

brockho commented May 19, 2020

When using floats instead of the Fractions.Fraction as suggested in 32, I get a lot of the following warnings:

/home/labcmap/dimo.brockhoff/anaconda3/lib/python3.7/site-packages/moarchiving/moarchiving.py:699: UserWarning: _subtract_HV: -0.259157 + 39934256605.838646 loses many digits of precision
  % (dHV, self._hypervolume))
/home/labcmap/dimo.brockhoff/anaconda3/lib/python3.7/site-packages/moarchiving/moarchiving.py:731: UserWarning: _subtract_HV: 0.236798 + 39934256605.579491 loses many digits of precision
  % (dHV, self._hypervolume))

After checking quickly with @nikohansen, we agreed that these messages should not be issued when using float.

@nikohansen
Copy link
Contributor

Looking at the code, the messages are actual warnings for the case when float is used.

They may be too restrictive though, but this needs some further investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants