Skip to content

Commit b1c790b

Browse files
authored
fix compare bug (#22)
* fix compare bug, pin to mpl<2
1 parent d64de36 commit b1c790b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nc_time_axis/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def default_units(cls, sample_point, axis):
231231
if isinstance(sample_point, np.ndarray):
232232
sample_point = sample_point.reshape(-1)
233233
calendars = np.array([point.calendar for point in sample_point])
234-
if np.all(calendars[0] == calendars):
234+
if np.all(calendars == calendars[0]):
235235
calendar = calendars[0]
236236
else:
237237
raise ValueError('Calendar units are not all equal.')

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
matplotlib
1+
matplotlib<2
22
mock
33
netcdf4>=1.1
44
numpy

0 commit comments

Comments
 (0)