Skip to content

Commit

Permalink
Merge pull request #178 from jswhit/issue177
Browse files Browse the repository at this point in the history
fix for issue #177
  • Loading branch information
jswhit authored Jan 28, 2021
2 parents 73c4685 + 6cbe198 commit 671a594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ version 2.1.4 (not yet released)
* update some cartopy test scripts to remove deprecation warnings.
* move package under 'src' dir so import pygrib works in install dir.
* add windows and macos x tests.
* make sure gribmessage.__repr__ doesn't fail is shapeOfTheEarth parameter
is missing (issue #177).

version 2.1.3 (git tag v2.1.3rel)
================================
Expand Down
2 changes: 1 addition & 1 deletion src/pygrib/_pygrib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ cdef class gribmessage(object):
if self.has_key('radius'):
projparams['a'] = self['radius']
projparams['b'] = self['radius']
else:
elif self.has_key('shapeOfTheEarth'):
if self['shapeOfTheEarth'] == 6:
projparams['a']=6371229.0
projparams['b']=6371229.0
Expand Down

0 comments on commit 671a594

Please sign in to comment.