Skip to content

Commit befb0eb

Browse files
authored
Merge branch 'main' into unlimited_dims
2 parents e8ecd59 + fa49c05 commit befb0eb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

xarray/core/coordinates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,10 +1027,10 @@ def drop_indexed_coords(
10271027
if isinstance(idx, PandasMultiIndex) and idx_drop_coords == {idx.dim}:
10281028
idx_drop_coords.update(idx.index.names)
10291029
emit_user_level_warning(
1030-
f"updating coordinate {idx.dim!r} with a PandasMultiIndex would leave "
1030+
f"updating coordinate {idx.dim!r}, which is a PandasMultiIndex, would leave "
10311031
f"the multi-index level coordinates {list(idx.index.names)!r} in an inconsistent state. "
1032-
f"This will raise an error in the future. Use `.drop_vars({list(idx_coords)!r})` before "
1033-
"assigning new coordinate values.",
1032+
f"This will raise an error in the future. Use `.drop_vars({list(idx_coords)!r})` "
1033+
"to drop the coordinates' values before assigning new coordinate values.",
10341034
FutureWarning,
10351035
)
10361036

xarray/groupers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,7 @@ def find_independent_seasons(seasons: Sequence[str]) -> Sequence[SeasonsGroup]:
691691
>>> find_independent_seasons(
692692
... ["DJF", "FMA", "AMJ", "JJA", "ASO", "OND"]
693693
... ) # doctest: +NORMALIZE_WHITESPACE
694-
[SeasonsGroup(seasons=('DJF', 'AMJ', 'ASO'), inds=((12, 1, 2), (4, 5, 6), (8, 9, 10)), codes=[0, 2, 4]),
695-
SeasonsGroup(seasons=('FMA', 'JJA', 'OND'), inds=((2, 3, 4), (6, 7, 8), (10, 11, 12)), codes=[1, 3, 5])]
694+
[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])]
696695
697696
>>> find_independent_seasons(["DJF", "MAM", "JJA", "SON"])
698697
[SeasonsGroup(seasons=('DJF', 'MAM', 'JJA', 'SON'), inds=((12, 1, 2), (3, 4, 5), (6, 7, 8), (9, 10, 11)), codes=[0, 1, 2, 3])]

0 commit comments

Comments
 (0)