Skip to content

Commit

Permalink
fix compare bug (#22)
Browse files Browse the repository at this point in the history
* fix compare bug, pin to mpl<2
  • Loading branch information
marqh authored Mar 7, 2017
1 parent d64de36 commit b1c790b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nc_time_axis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def default_units(cls, sample_point, axis):
if isinstance(sample_point, np.ndarray):
sample_point = sample_point.reshape(-1)
calendars = np.array([point.calendar for point in sample_point])
if np.all(calendars[0] == calendars):
if np.all(calendars == calendars[0]):
calendar = calendars[0]
else:
raise ValueError('Calendar units are not all equal.')
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
matplotlib
matplotlib<2
mock
netcdf4>=1.1
numpy
Expand Down

0 comments on commit b1c790b

Please sign in to comment.