Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 14, 2022
1 parent 8eefa23 commit b9c01a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cf_units/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1813,10 +1813,7 @@ def convert(self, value, other, ctype=FLOAT64, inplace=False):
result = copy.deepcopy(value)
# Use cftime for converting reference times that are not using a
# gregorian calendar as it handles these and udunits does not.
if (
self.is_time_reference()
and self.calendar != CALENDAR_STANDARD
):
if self.is_time_reference() and self.calendar != CALENDAR_STANDARD:
result_datetimes = cftime.num2date(
result, self.cftime_unit, self.calendar
)
Expand Down

0 comments on commit b9c01a3

Please sign in to comment.