Skip to content

Commit

Permalink
Explicit xarray imports (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
aulemahal authored Jun 29, 2022
1 parent aac9a15 commit b031b45
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions cf_xarray/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit b031b45

Please sign in to comment.