Skip to content

Commit 666b507

Browse files
authored
Merge pull request #164 from scipp/fix-orso-output-case
fix: better reduction setting to avoid including transmitted beam
2 parents 907128b + 8b56e66 commit 666b507

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/amor/pipeline_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from ess.reflectometry import orso
1515
from ess.reflectometry.tools import scale_reflectivity_curves_to_overlap
1616
from ess.reflectometry.types import (
17+
BeamDivergenceLimits,
1718
Filename,
1819
ProtonCurrent,
1920
QBins,
@@ -111,12 +112,16 @@ def test_orso_pipeline(amor_pipeline: sciline.Pipeline):
111112
def test_save_reduced_orso_file(output_folder: Path):
112113
from orsopy import fileio
113114

114-
wf = sciline.Pipeline(providers=amor.providers, params=amor.default_parameters())
115+
wf = amor.AmorWorkflow()
115116
wf[SampleSize[SampleRun]] = sc.scalar(10.0, unit="mm")
116117
wf[SampleSize[ReferenceRun]] = sc.scalar(10.0, unit="mm")
117118
wf[YIndexLimits] = sc.scalar(11), sc.scalar(41)
118119
wf[WavelengthBins] = sc.geomspace("wavelength", 3, 12.5, 2000, unit="angstrom")
119120
wf[ZIndexLimits] = sc.scalar(170), sc.scalar(266)
121+
wf[BeamDivergenceLimits] = (
122+
sc.scalar(-0.16, unit='deg'),
123+
sc.scalar(0.2, unit='deg'),
124+
)
120125
wf = with_filenames(
121126
wf, SampleRun, [data.amor_run(4079), data.amor_run(4080), data.amor_run(4081)]
122127
)

0 commit comments

Comments
 (0)