From 5cb22bbabd9569dfb3020faabf8853319caa11be Mon Sep 17 00:00:00 2001 From: Pascal Bourgault Date: Wed, 29 Jun 2022 16:50:37 -0400 Subject: [PATCH 1/2] Explicit imports --- cf_xarray/accessor.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/cf_xarray/accessor.py b/cf_xarray/accessor.py index 557352ca..6319f79f 100644 --- a/cf_xarray/accessor.py +++ b/cf_xarray/accessor.py @@ -24,6 +24,10 @@ import xarray as xr from xarray import DataArray, Dataset from xarray.core.arithmetic import SupportsArithmetic +from xarray.core.groupby import GroupBy +from xarray.core.resample import Resample +from xarray.core.rolling import Coarsen, Rolling +from xarray.core.weighted import Weighted from .criteria import cf_role_criteria, coordinate_criteria, regex from .helpers import bounds_to_vertices @@ -38,13 +42,7 @@ ) #: Classes wrapped by cf_xarray. -_WRAPPED_CLASSES = ( - xr.core.resample.Resample, - xr.core.groupby.GroupBy, - xr.core.rolling.Rolling, - xr.core.rolling.Coarsen, - xr.core.weighted.Weighted, -) +_WRAPPED_CLASSES = (Resample, GroupBy, Rolling, Coarsen, Weighted) #: `axis` names understood by cf_xarray _AXIS_NAMES = ("X", "Y", "Z", "T") From fef57aeabac3e647d292433395ec43ff09d3434e Mon Sep 17 00:00:00 2001 From: Pascal Bourgault Date: Wed, 29 Jun 2022 17:17:12 -0400 Subject: [PATCH 2/2] [test-upstream]