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 455454d commit 6220922Copy full SHA for 6220922
src/ess/powder/correction.py
@@ -106,7 +106,10 @@ def normalize_by_monitor_integrated(
106
)
107
lo = det_coord.min()
108
hi = det_coord.max()
109
- hi.value = np.nextafter(hi.value, np.inf)
+ # hi is shifted towards MINUS infinity because label-based indexing with bin-edges
110
+ # in inclusive for the upper edge. But we don't want the literal upper edge
111
+ # of the detector to be included.
112
+ hi.value = np.nextafter(hi.value, -np.inf)
113
monitor = monitor[dim, lo:hi]
114
115
coord = monitor.coords[dim]
0 commit comments