Skip to content

Improved translate test logging#398

Merged
FlorianDeconinck merged 7 commits into
NOAA-GFDL:developfrom
CharlesKrop:translate_test_logging_update
Mar 25, 2026
Merged

Improved translate test logging#398
FlorianDeconinck merged 7 commits into
NOAA-GFDL:developfrom
CharlesKrop:translate_test_logging_update

Conversation

@CharlesKrop
Copy link
Copy Markdown
Collaborator

Fixed a bug that was incorrectly computing the number of changing points (points that differed between the reference in and out files).

Added a few lines that compute the number of changing columns and failing columns.

Updated the translate test print to show report these new values, and ensure that all are shown on the by the pytest short summary.

…tion, and updated the log within the comparision calculations of the translate test
Copy link
Copy Markdown
Collaborator

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

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

Looking good - maybe try a few different messages to shorten it? This is an expert system, we don't necessarily needs to be as verbose as I made it in the past

Comment thread ndsl/testing/comparison.py
Comment thread ndsl/testing/comparison.py Outdated
Comment thread ndsl/testing/comparison.py Outdated
Comment thread ndsl/testing/comparison.py Outdated
@FlorianDeconinck
Copy link
Copy Markdown
Collaborator

Another thought: if "changed" grid points == "all", maybe print only of?

@CharlesKrop
Copy link
Copy Markdown
Collaborator Author

CharlesKrop commented Mar 19, 2026

I think there is value to printing both changing points and all points, even when they are the same. It hardly adds any clutter (in fact, I would argue keeping the print the same for all cases makes it easier to read) and it makes it easy to recognize that all points actually change.

particularly useful since - when there is no input data to compute changing points, I only print failures of all grid points. I want to keep those two prints fairly distinct so they can be distinguished

Copy link
Copy Markdown
Collaborator

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

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

Lint + small comment to verobose intent then you can merge

Comment thread ndsl/testing/comparison.py
@FlorianDeconinck FlorianDeconinck added this pull request to the merge queue Mar 25, 2026
Merged via the queue into NOAA-GFDL:develop with commit 0fff114 Mar 25, 2026
7 checks passed
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