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

RuntimeWarning: overflow encountered in double_scalars #119

Closed
moustakas opened this issue Jan 8, 2022 · 0 comments · Fixed by #120
Closed

RuntimeWarning: overflow encountered in double_scalars #119

moustakas opened this issue Jan 8, 2022 · 0 comments · Fixed by #120

Comments

@moustakas
Copy link
Member

The desisim/test/test_quickspectra.py unit test yields the following non-catastrophic warning based on the nominal desi configuration file, which I've tracked down to when the specsim.observation.Observation._update_model() method is called. Would be nice to fix this.

/Users/ioannis/opt/anaconda3/envs/desi/lib/python3.8/site-packages/astropy/time/utils.py:179: RuntimeWarning: overflow encountered in double_scalars
  c = 134217729. * a  # 2**27+1.
/Users/ioannis/opt/anaconda3/envs/desi/lib/python3.8/site-packages/astropy/time/utils.py:181: RuntimeWarning: invalid value encountered in double_scalars
  ah = c - abig
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

Successfully merging a pull request may close this issue.

1 participant