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

Correct rounding of vertical coordinates. #210

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

pp-mo
Copy link
Member

@pp-mo pp-mo commented Jun 15, 2020

IMHO we should be rounding any time we convert a float value to a scaled integer.
See: #211
However, it looks like that is awkward and will get in the way of the 0.16 release, so I think it's not worth it now.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.479% when pulling cba5330 on pp-mo:round_vertical_coord into 2e99443 on SciTools:master.

@lbdreyer lbdreyer self-assigned this Jun 16, 2020
@lbdreyer
Copy link
Member

This looks sensible to me, more safe than just using int!

I assigned myself yesterday as I wasn't sure anyone was looking at this, but it sounds like @alastair-gemmell may be? If so I'll hold off on merging.

@alastair-gemmell alastair-gemmell self-assigned this Jun 18, 2020
@alastair-gemmell alastair-gemmell requested review from alastair-gemmell and removed request for alastair-gemmell June 18, 2020 14:04
Copy link

@alastair-gemmell alastair-gemmell left a comment

Choose a reason for hiding this comment

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

The changes look fine to me too. Not actually run the code yet, but having discussed it it does sound like a sensible change to make!

@alastair-gemmell alastair-gemmell merged commit 07a1b22 into SciTools:master Jun 22, 2020
@pp-mo pp-mo deleted the round_vertical_coord branch March 3, 2022 14:40
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.

4 participants