Skip to content

Commit

Permalink
Avoid cftime warnings on pp-load
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed Jun 22, 2023
1 parent b3bef26 commit 5cf5c76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/iris/fileformats/pp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ def t1(self):
"""
if not hasattr(self, "_t1"):
has_year_zero = self.lbyr == 0
has_year_zero = self.lbyr == 0 or None
calendar = (
None if self.lbmon == 0 or self.lbdat == 0 else self.calendar
)
Expand Down Expand Up @@ -1520,7 +1520,7 @@ def t2(self):
"""
if not hasattr(self, "_t2"):
has_year_zero = self.lbyrd == 0
has_year_zero = self.lbyrd == 0 or None
calendar = (
None if self.lbmond == 0 or self.lbdatd == 0 else self.calendar
)
Expand Down Expand Up @@ -1567,7 +1567,7 @@ def t1(self):
"""
if not hasattr(self, "_t1"):
has_year_zero = self.lbyr == 0
has_year_zero = self.lbyr == 0 or None
calendar = (
None if self.lbmon == 0 or self.lbdat == 0 else self.calendar
)
Expand Down Expand Up @@ -1602,7 +1602,7 @@ def t2(self):
"""
if not hasattr(self, "_t2"):
has_year_zero = self.lbyrd == 0
has_year_zero = self.lbyrd == 0 or None
calendar = (
None if self.lbmond == 0 or self.lbdatd == 0 else self.calendar
)
Expand Down

0 comments on commit 5cf5c76

Please sign in to comment.