-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove GribFile's iteration capability
This is accompanied by some smaller changes to the behavior in GribMessage. Specifically, I discovered that if I tested the arguments used to instantiate a GribMessage, it would result in the file descriptor returned by the GRIB API being invalid. Also, iterating directly over all messages in a GRIB file using the GribFile class returned the same message over and over again. For some reason, wrapping too much complexity around getting a new message from a GRIB file causes the GRIB API to return a GID without an error, but this GID will always correspond to the first message in the file. The file seeks to the end of the first message and remains there. Consequently, I have removed the ability to iterate directly over GRIB messages and have reimplemented the initialization method of GribMessage. Tests and documentation have been modified accordingly.
- Loading branch information
Showing
5 changed files
with
59 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
from distutils.core import setup | ||
|
||
setup(name='PythonicGRIB', | ||
version='0.1.1', | ||
version='0.2.0', | ||
description="A Pythonic interface for the ECMWF's GRIB API", | ||
author='Daniel Lee', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters