We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 771b2fe commit 26d8780Copy full SHA for 26d8780
src/ess/powder/grouping.py
@@ -89,7 +89,7 @@ def integrate_two_theta(
89
) -> FocussedDataDspacing[RunType]:
90
"""Integrate the two-theta dimension of the data."""
91
if 'two_theta' not in data.dims:
92
- raise ValueError("Data does not have a 'two_theta' dimension.")
+ raise sc.DimensionError("Data does not have a 'two_theta' dimension.")
93
return FocussedDataDspacing[RunType](
94
data.nansum(dim='two_theta')
95
if data.bins is None
0 commit comments