We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46806b2 commit ec80cb5Copy full SHA for ec80cb5
xarray/coding/times.py
@@ -733,7 +733,7 @@ def infer_calendar_name(dates) -> CFCalendar:
733
"""Given an array of datetimes, infer the CF calendar name"""
734
if is_np_datetime_like(dates.dtype):
735
return "proleptic_gregorian"
736
- elif dates.dtype == np.dtype("O") and dates.size > 0: # noqa: SIM102
+ elif dates.dtype == np.dtype("O") and dates.size > 0:
737
# Logic copied from core.common.contains_cftime_datetimes.
738
if cftime is not None:
739
sample = np.asarray(dates).flat[0]
0 commit comments