Skip to content

Fix defaults manager handling of json files with NaNs. Fixes #2085#2086

Merged
sjanzou merged 2 commits into
patchfrom
SAM_2085
Jun 5, 2025
Merged

Fix defaults manager handling of json files with NaNs. Fixes #2085#2086
sjanzou merged 2 commits into
patchfrom
SAM_2085

Conversation

@sjanzou

@sjanzou sjanzou commented Jun 3, 2025

Copy link
Copy Markdown
Collaborator

Fix #2085

@sjanzou sjanzou self-assigned this Jun 3, 2025
@sjanzou sjanzou linked an issue Jun 3, 2025 that may be closed by this pull request

@berg-michael berg-michael left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These changes look good to me and align with those made in SAM #1856.

There are a few other places where we use PrettyWriter. Most have the kWriteNanAndInfFlag set, but InputPageData::Write_JSON in src/main.cpp and WritePythonConfig in src/pythonhandler.cpp do not.

I'm not familiar with the type of data that'd be written by those functions. Is is possible that there would be NaNs/Infs? If so, I think those should be changed as well.

Otherwise, I have no comments.

@sjanzou

sjanzou commented Jun 4, 2025

Copy link
Copy Markdown
Collaborator Author

Go through remaining occurrences of PrettyWriter and update all with NaN and Inf flag and create ssc pull request NatLabRockies/ssc#1333 to go with SAM #2086

@sjanzou sjanzou requested a review from berg-michael June 4, 2025 07:17

@berg-michael berg-michael left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me!

@sjanzou sjanzou merged commit 9b1a192 into patch Jun 5, 2025
8 checks passed
@sjanzou sjanzou deleted the SAM_2085 branch June 5, 2025 05:52
@cpaulgilman cpaulgilman added this to the SAM 2025 Release Patch 1 milestone Jul 21, 2025
@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added to release notes PR and/or issue has been added to release notes for a public release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Defaults manager does not handle NaN values

4 participants