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

Fix issues on linux 32-bit / Windows #131

Merged
merged 3 commits into from
Sep 27, 2018
Merged

Fix issues on linux 32-bit / Windows #131

merged 3 commits into from
Sep 27, 2018

Conversation

taldcroft
Copy link
Member

@taldcroft taldcroft commented Sep 27, 2018

This fixes:

  • FloatingPointUnderflow in the probability calculations seen on linux-32
  • Int multiply overflow seen on Windows and linux-32 (where default int is 32 bits)

The int multiply overflow is fundamentally an upstream bug fixed in sot/chandra_aca#59, but this test workaround avoids that problem.

The FloatingPointUnderflow is related to multiplying a huge number of small numbers (for imposters), and #118 would probably makes this go away, but the clip() is safe and reasonable.

The version is updated to 1.2.1 in anticipation of a new release.

Passing tests on osx64, linux64, linux32.

@taldcroft taldcroft added this to the 4.0 test release milestone Sep 27, 2018
@taldcroft taldcroft requested a review from jeanconn September 27, 2018 12:55
@taldcroft taldcroft merged commit d93bdbd into master Sep 27, 2018
@taldcroft taldcroft deleted the fix-32 branch September 27, 2018 12:59
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 this pull request may close these issues.

2 participants