Skip to content

Commit 26d8780

Browse files
Update src/ess/powder/grouping.py
Co-authored-by: Jan-Lukas Wynen <[email protected]>
1 parent 771b2fe commit 26d8780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ess/powder/grouping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def integrate_two_theta(
8989
) -> FocussedDataDspacing[RunType]:
9090
"""Integrate the two-theta dimension of the data."""
9191
if 'two_theta' not in data.dims:
92-
raise ValueError("Data does not have a 'two_theta' dimension.")
92+
raise sc.DimensionError("Data does not have a 'two_theta' dimension.")
9393
return FocussedDataDspacing[RunType](
9494
data.nansum(dim='two_theta')
9595
if data.bins is None

0 commit comments

Comments
 (0)