From 62595fdcdf5f04de1bcefc6184e4d5254a56555d Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Sat, 20 Apr 2024 14:17:36 -0600 Subject: [PATCH] cleanup --- xarray/core/groupers.py | 2 ++ xarray/core/resample.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xarray/core/groupers.py b/xarray/core/groupers.py index fd84a91b6ac..e33cd3ad99f 100644 --- a/xarray/core/groupers.py +++ b/xarray/core/groupers.py @@ -34,6 +34,8 @@ "TimeResampler", ] +RESAMPLE_DIM = "__resample_dim__" + @dataclass class EncodedGroups: diff --git a/xarray/core/resample.py b/xarray/core/resample.py index 9181bb4ee9b..ceab0a891c9 100644 --- a/xarray/core/resample.py +++ b/xarray/core/resample.py @@ -15,7 +15,7 @@ from xarray.core.dataarray import DataArray from xarray.core.dataset import Dataset -RESAMPLE_DIM = "__resample_dim__" +from xarray.core.groupers import RESAMPLE_DIM class Resample(GroupBy[T_Xarray]):