|
64 | 64 | MonitorFilename[SampleRun]: dream.data.simulated_monitor_diamond_sample(),
|
65 | 65 | MonitorFilename[VanadiumRun]: dream.data.simulated_monitor_vanadium_sample(),
|
66 | 66 | MonitorFilename[BackgroundRun]: dream.data.simulated_monitor_empty_can(),
|
67 |
| - TimeOfFlightLookupTableFilename: dream.data.tof_lookup_table_high_flux(), |
| 67 | + dream.InstrumentConfiguration: dream.beamline.InstrumentConfiguration.high_flux, |
68 | 68 | CalibrationFilename: None,
|
69 | 69 | UncertaintyBroadcastMode: UncertaintyBroadcastMode.drop,
|
70 | 70 | DspacingBins: sc.linspace('dspacing', 0.0, 2.3434, 201, unit='angstrom'),
|
@@ -117,6 +117,14 @@ def test_pipeline_can_compute_dspacing_result(workflow):
|
117 | 117 | assert sc.identical(result.coords['dspacing'], params[DspacingBins])
|
118 | 118 |
|
119 | 119 |
|
| 120 | +def test_pipeline_can_compute_dspacing_result_using_lookup_table_filename(workflow): |
| 121 | + workflow = powder.with_pixel_mask_filenames(workflow, []) |
| 122 | + workflow[TimeOfFlightLookupTableFilename] = dream.data.tof_lookup_table_high_flux() |
| 123 | + result = workflow.compute(IofDspacing) |
| 124 | + assert result.sizes == {'dspacing': len(params[DspacingBins]) - 1} |
| 125 | + assert sc.identical(result.coords['dspacing'], params[DspacingBins]) |
| 126 | + |
| 127 | + |
120 | 128 | @pytest.fixture(scope="module")
|
121 | 129 | def simulation_dream_choppers():
|
122 | 130 | return time_of_flight.simulate_beamline(
|
|
0 commit comments