Skip to content

Commit 08465d5

Browse files
committed
fix: add max-divergence mask
1 parent e5b9763 commit 08465d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ess/reflectometry/conversions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ def add_masks(
149149
wb: WavelengthBins,
150150
zlim: ZIndexLimits,
151151
) -> MaskedData[RunType]:
152+
da.masks["beam_divergence_too_large"] = sc.abs(
153+
da.coords["angle_from_center_of_beam"]
154+
) > sc.scalar(0.7, unit='deg')
152155
da.masks["y_index_range"] = (da.coords["y_index"] < ylim[0]) | (
153156
da.coords["y_index"] > ylim[1]
154157
)

0 commit comments

Comments
 (0)