Skip to content

Commit

Permalink
suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
juliettelavoie committed Jan 6, 2025
1 parent 525b4c0 commit 31b73c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xclim/ensembles/_partitioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ def general_partition(
raise ValueError("This algorithm expects annual time series.")

if not ({"time"} | set(all_types)).issubset(da.dims):
raise ValueError(f"DataArray dimensions should include {all_types} and time.")
error_msg = f"DataArray dimensions should include {all_types} and time."
raise ValueError(error_msg)

if sm == "poly":
# Fit a 4th order polynomial
Expand Down

0 comments on commit 31b73c9

Please sign in to comment.