Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Feb 9, 2019
1 parent c2578f1 commit 2880180
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cartopy/mpl/gridliner.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ def _crs_transform(self):

@staticmethod
def _round(x, base=5):
if np.isnan(base):
base = 5
return int(base * round(float(x) / base))

def _find_midpoints(self, lim, ticks):
Expand Down

0 comments on commit 2880180

Please sign in to comment.