Skip to content

Commit

Permalink
convert to xarray dict reports readable error
Browse files Browse the repository at this point in the history
  • Loading branch information
14renus committed Jan 28, 2025
1 parent de3914e commit d598aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoarches/metrics/label_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _convert_coord(name, value):
labels = label.split("_")
if len(labels) - 2 != len(extra_dimensions):
raise ValueError(
f"Expected length of extra_dimensions for key {label} to be: {len(labels) - 2}."
f"Expected length of extra_dimensions for key {label} to be: {len(labels) - 2}. Got extra_dimensions={extra_dimensions}."
)
metrics.add(labels[0])
variables.add(labels[1])
Expand Down

0 comments on commit d598aca

Please sign in to comment.