Skip to content

Bugfix for average fields - #11

Merged
peverwhee merged 4 commits into
ESMCI:developmentfrom
peverwhee:avg-bugfix
Jun 8, 2026
Merged

peverwhee merged 4 commits into
ESMCI:developmentfrom
peverwhee:avg-bugfix

Conversation

@peverwhee

Copy link
Copy Markdown
Collaborator

The 1D array of num_samples is being added to for each vertical level, so the average field math at the end is wrong.

Fix to increment the sample in the dim1 loop only!

@peverwhee
peverwhee requested a review from nusbaume June 2, 2026 16:30

@nusbaume nusbaume 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.

Thanks @peverwhee!

@peverwhee
peverwhee merged commit 170bcb9 into ESMCI:development Jun 8, 2026
1 check 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.

3 participants