Skip to content

Raise an error when encoding floats to integers without a fill value #494

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

Merged
merged 2 commits into from
Aug 5, 2015

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Jul 24, 2015

No description provided.

@shoyer
Copy link
Member Author

shoyer commented Aug 1, 2015

I still have one concerned for this PR -- it's possible to load a integer variable from a netCDF that decodes as float because it defines a fill value, scale or offset. We need to make sure that these variables can be written back to disk successfully. So, a warning might be more appropriate here.

shoyer added a commit that referenced this pull request Aug 5, 2015
Raise an error when encoding floats to integers without a fill value
@shoyer shoyer merged commit 9a6354e into pydata:master Aug 5, 2015
@shoyer shoyer deleted the safe-encoding branch August 5, 2015 01:42
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.

1 participant