MCPcopy Index your code
hub / github.com/pydata/xarray / is_leap_year

Method is_leap_year

xarray/coding/cftimeindex.py:784–790  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

782
783 @property
784 def is_leap_year(self):
785 if TYPE_CHECKING:
786 import cftime
787 else:
788 cftime = attempt_import("cftime")
789 func = np.vectorize(cftime.is_leap_year)
790 return func(self.year, calendar=self.calendar)
791
792
793def _parse_array_of_cftime_strings(strings, date_type):

Callers

nothing calls this directly

Calls 2

attempt_importFunction · 0.90
funcFunction · 0.50

Tested by

no test coverage detected