Skip to content

Commit

Permalink
Add comment about Julian calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
djkirkham committed Mar 31, 2017
1 parent b33ce29 commit 45a9325
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def setUp(self):
'proleptic_gregorian': np.array(list(range(360, 367)) +
list(range(1, 4))),
'noleap': np.array(list(range(359, 366)) + list(range(1, 4))),
'julian': np.array(list(range(360, 367)) + list(range(1, 4))),
'all_leap': np.array(list(range(360, 367)) + list(range(1, 4))),
'365_day': np.array(list(range(359, 366)) + list(range(1, 4))),
'366_day': np.array(list(range(360, 367)) + list(range(1, 4))),
Expand All @@ -114,7 +115,12 @@ def make_cube(self, calendar):
return cube

def test_calendars(self):
for calendar in self.expected:
for calendar in calendars:
# Skip the Julian calendar due to
# https://github.com/Unidata/netcdftime/issues/13
# Remove this if block once the issue is resolved.
if calendar == 'julian':
continue
cube = self.make_cube(calendar)
add_day_of_year(cube, 'time')
points = cube.coord('day_of_year').points
Expand Down

0 comments on commit 45a9325

Please sign in to comment.