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

Fix bug in median calculation #111

Conversation

samhatfield
Copy link
Collaborator

With the old style, the calculation of the median was broken for runs with a single iteration (accessing the zeroth element of the time step storage array) and did not give a conventional value for runs with two iterations (it should be the average of the two).

Resolves #108.

Dear colleagues @wdeconinck and @marsdeno, I hope this isn't controversial!

With the old style, the calculation of the median was broken for runs
with a single iteration (accessing the zeroth element of the time step
storage array) and did not give a conventional value for runs with two
iterations (it should be the average of the two).

Resolves ecmwf-ifs#108.
Copy link
Collaborator

@marsdeno marsdeno left a comment

Choose a reason for hiding this comment

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

Looks very uncontroversial to me!

@samhatfield samhatfield merged commit 491806d into ecmwf-ifs:develop Jul 2, 2024
11 checks passed
@samhatfield samhatfield deleted the samhatfield/fix_median_calculation branch July 2, 2024 15:08
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