44import scipp as sc
55
66from ess .reduce import time_of_flight
7+ from ess .reduce .nexus .types import AnyRun
78from ess .reduce .time_of_flight import TofLookupTableWorkflow
89
910sl = pytest .importorskip ("sciline" )
1011
1112
1213def test_lut_workflow_computes_table ():
1314 wf = TofLookupTableWorkflow ()
14- wf [time_of_flight .DiskChoppers ] = {}
15+ wf [time_of_flight .DiskChoppers [ AnyRun ] ] = {}
1516 wf [time_of_flight .SourcePosition ] = sc .vector ([0 , 0 , 0 ], unit = 'm' )
1617 wf [time_of_flight .NumberOfSimulatedNeutrons ] = 100_000
1718 wf [time_of_flight .SimulationSeed ] = 60
@@ -40,7 +41,7 @@ def test_lut_workflow_computes_table():
4041
4142def test_lut_workflow_computes_table_in_chunks ():
4243 wf = TofLookupTableWorkflow ()
43- wf [time_of_flight .DiskChoppers ] = {}
44+ wf [time_of_flight .DiskChoppers [ AnyRun ] ] = {}
4445 wf [time_of_flight .SourcePosition ] = sc .vector ([0 , 0 , 0 ], unit = 'm' )
4546 # Lots of neutrons activates chunking
4647 wf [time_of_flight .NumberOfSimulatedNeutrons ] = 1_000_000
@@ -70,7 +71,7 @@ def test_lut_workflow_computes_table_in_chunks():
7071
7172def test_lut_workflow_pulse_skipping ():
7273 wf = TofLookupTableWorkflow ()
73- wf [time_of_flight .DiskChoppers ] = {}
74+ wf [time_of_flight .DiskChoppers [ AnyRun ] ] = {}
7475 wf [time_of_flight .SourcePosition ] = sc .vector ([0 , 0 , 0 ], unit = 'm' )
7576 wf [time_of_flight .NumberOfSimulatedNeutrons ] = 100_000
7677 wf [time_of_flight .SimulationSeed ] = 62
@@ -93,7 +94,7 @@ def test_lut_workflow_pulse_skipping():
9394
9495def test_lut_workflow_non_exact_distance_range ():
9596 wf = TofLookupTableWorkflow ()
96- wf [time_of_flight .DiskChoppers ] = {}
97+ wf [time_of_flight .DiskChoppers [ AnyRun ] ] = {}
9798 wf [time_of_flight .SourcePosition ] = sc .vector ([0 , 0 , 0 ], unit = 'm' )
9899 wf [time_of_flight .NumberOfSimulatedNeutrons ] = 100_000
99100 wf [time_of_flight .SimulationSeed ] = 63
0 commit comments