From 044ba610f2d0e72a981d0c845e8b26b4ccd613bf Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Thu, 7 Aug 2025 10:27:16 +0200 Subject: [PATCH] Update groupers.py --- xarray/groupers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xarray/groupers.py b/xarray/groupers.py index 4424c65a94b..f01d4b8cd48 100644 --- a/xarray/groupers.py +++ b/xarray/groupers.py @@ -691,8 +691,7 @@ def find_independent_seasons(seasons: Sequence[str]) -> Sequence[SeasonsGroup]: >>> find_independent_seasons( ... ["DJF", "FMA", "AMJ", "JJA", "ASO", "OND"] ... ) # doctest: +NORMALIZE_WHITESPACE - [SeasonsGroup(seasons=('DJF', 'AMJ', 'ASO'), inds=((12, 1, 2), (4, 5, 6), (8, 9, 10)), codes=[0, 2, 4]), - SeasonsGroup(seasons=('FMA', 'JJA', 'OND'), inds=((2, 3, 4), (6, 7, 8), (10, 11, 12)), codes=[1, 3, 5])] + [SeasonsGroup(seasons=('DJF', 'AMJ', 'ASO'), inds=((12, 1, 2), (4, 5, 6), (8, 9, 10)), codes=[0, 2, 4]), SeasonsGroup(seasons=('FMA', 'JJA', 'OND'), inds=((2, 3, 4), (6, 7, 8), (10, 11, 12)), codes=[1, 3, 5])] >>> find_independent_seasons(["DJF", "MAM", "JJA", "SON"]) [SeasonsGroup(seasons=('DJF', 'MAM', 'JJA', 'SON'), inds=((12, 1, 2), (3, 4, 5), (6, 7, 8), (9, 10, 11)), codes=[0, 1, 2, 3])]