Skip to content

Translate test dimension fix during comparison#419

Merged
FlorianDeconinck merged 2 commits into
NOAA-GFDL:developfrom
CharlesKrop:translate_test_comparison_squeeze
Apr 3, 2026
Merged

Translate test dimension fix during comparison#419
FlorianDeconinck merged 2 commits into
NOAA-GFDL:developfrom
CharlesKrop:translate_test_comparison_squeeze

Conversation

@CharlesKrop
Copy link
Copy Markdown
Collaborator

added np.squeeze for all non-scalar fields at the top of the BaseMetric class, fixes an error where some fields have a lingering size one dimension causes a dimension mismatch with the reference data. Fields which already have the correct dimensions are unaffected by this change.

…ic class, fixes an error where some fields have a lingering size one dimension causes a dimension mismatch with the reference data
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.

LGTM - should be covered by tests

@FlorianDeconinck FlorianDeconinck added this pull request to the merge queue Apr 3, 2026
Merged via the queue into NOAA-GFDL:develop with commit 1815e4f Apr 3, 2026
8 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