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

Modified logic in Unit.convert to handle numpy scalars. #472

Merged
merged 1 commit into from
Apr 23, 2013

Conversation

esc24
Copy link
Member

@esc24 esc24 commented Apr 23, 2013

This PR modifies the logic in iris.unit.Unit convert method so it can handle numpy scalar types such as np.int32.

This fixes #470 and should resolve #431 avoiding the need for workaround #471.

@ajdawson
Copy link
Member

@esc24 I can confirm that this resolves the issue reported in #431.

pelson added a commit that referenced this pull request Apr 23, 2013
Modified logic in Unit.convert to handle numpy scalars.
@pelson pelson merged commit 75a6748 into SciTools:master Apr 23, 2013
@pelson
Copy link
Member

pelson commented Apr 23, 2013

👍 - nice work.

@pelson
Copy link
Member

pelson commented Apr 23, 2013

Thanks @ajdawson.

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.

Unit.convert vs np.int32 Cannot write GRIB2 file with integer pressure level.
3 participants