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

issue #514: table not finding NaNs and Infs #588

Merged
merged 2 commits into from
Jan 26, 2023
Merged

issue #514: table not finding NaNs and Infs #588

merged 2 commits into from
Jan 26, 2023

Conversation

al-niessner
Copy link
Contributor

@al-niessner al-niessner commented Jan 26, 2023

🗒️ Summary

pds4-jparser uses the Java built-in Double.toString() to convert the values for tables. It means that the code is dependent upon how the JVM implements that conversion. Seems INF and NAN are no longer vogue and it now returns Infinity and NaN. Updated the available checks to include INFINITY and then convert the Double.toString().toUpperCase() for the comparison only for running with any JVM version.

⚙️ Test Data and/or Report

Added test to auto checks so look for green check below.

♻️ Related Issues

resolves #514

@al-niessner al-niessner self-assigned this Jan 26, 2023
@al-niessner al-niessner requested a review from a team as a code owner January 26, 2023 16:24
Copy link
Member

@nutjob4life nutjob4life left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Sun Java Oracle for changing things on us. 👍

Copy link
Member

@nutjob4life nutjob4life left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks even better. Is this all of it? If so: 👍

@jordanpadams jordanpadams changed the title issue 514: table not finding NaNs and Infs issue #514: table not finding NaNs and Infs Jan 26, 2023
@jordanpadams jordanpadams merged commit d9f6351 into main Jan 26, 2023
@jordanpadams jordanpadams deleted the issue_514 branch January 26, 2023 16:40
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.

Validate does not catch NaNs in Binary Tables
3 participants