@@ -48,7 +48,7 @@ def amor_pipeline() -> sciline.Pipeline:
4848 )
4949 # The sample rotation value in the file is slightly off, so we set it manually
5050 pl [SampleRotation [ReferenceRun ]] = sc .scalar (0.65 , unit = "deg" )
51- pl [Filename [ReferenceRun ]] = amor .data .amor_reference_run ( )
51+ pl [Filename [ReferenceRun ]] = amor .data .amor_run ( 614 )
5252
5353 pl [orso .OrsoCreator ] = orso .OrsoCreator (
5454 fileio .base .Person (
@@ -65,7 +65,7 @@ def amor_pipeline() -> sciline.Pipeline:
6565def test_has_expected_coordinates (amor_pipeline : sciline .Pipeline ):
6666 # The sample rotation value in the file is slightly off, so we set it manually
6767 amor_pipeline [SampleRotation [SampleRun ]] = sc .scalar (0.85 , unit = "deg" )
68- amor_pipeline [Filename [SampleRun ]] = amor .data .amor_sample_run (608 )
68+ amor_pipeline [Filename [SampleRun ]] = amor .data .amor_run (608 )
6969 reflectivity_over_q = amor_pipeline .compute (ReflectivityOverQ )
7070 assert "Q" in reflectivity_over_q .coords
7171 assert "Q_resolution" in reflectivity_over_q .coords
@@ -76,7 +76,7 @@ def test_has_expected_coordinates(amor_pipeline: sciline.Pipeline):
7676def test_pipeline_no_gravity_correction (amor_pipeline : sciline .Pipeline ):
7777 # The sample rotation value in the file is slightly off, so we set it manually
7878 amor_pipeline [SampleRotation [SampleRun ]] = sc .scalar (0.85 , unit = "deg" )
79- amor_pipeline [Filename [SampleRun ]] = amor .data .amor_sample_run (608 )
79+ amor_pipeline [Filename [SampleRun ]] = amor .data .amor_run (608 )
8080 amor_pipeline [amor .types .GravityToggle ] = False
8181 reflectivity_over_q = amor_pipeline .compute (ReflectivityOverQ )
8282 assert "Q" in reflectivity_over_q .coords
@@ -88,7 +88,7 @@ def test_pipeline_no_gravity_correction(amor_pipeline: sciline.Pipeline):
8888def test_orso_pipeline (amor_pipeline : sciline .Pipeline ):
8989 # The sample rotation value in the file is slightly off, so we set it manually
9090 amor_pipeline [SampleRotation [SampleRun ]] = sc .scalar (0.85 , unit = "deg" )
91- amor_pipeline [Filename [SampleRun ]] = amor .data .amor_sample_run (608 )
91+ amor_pipeline [Filename [SampleRun ]] = amor .data .amor_run (608 )
9292 res = amor_pipeline .compute (orso .OrsoIofQDataset )
9393 assert res .info .data_source .experiment .instrument == "Amor"
9494 assert res .info .reduction .software .name == "ess.reflectometry"
@@ -109,7 +109,7 @@ def test_save_reduced_orso_file(amor_pipeline: sciline.Pipeline, output_folder:
109109 from orsopy import fileio
110110
111111 amor_pipeline [SampleRotation [SampleRun ]] = sc .scalar (0.85 , unit = "deg" )
112- amor_pipeline [Filename [SampleRun ]] = amor .data .amor_sample_run (608 )
112+ amor_pipeline [Filename [SampleRun ]] = amor .data .amor_run (608 )
113113 res = amor_pipeline .compute (orso .OrsoIofQDataset )
114114 fileio .orso .save_orso (datasets = [res ], fname = output_folder / 'amor_reduced_iofq.ort' )
115115
@@ -120,8 +120,8 @@ def test_pipeline_can_compute_reflectivity_merging_events_from_multiple_runs(
120120 amor_pipeline : sciline .Pipeline ,
121121):
122122 sample_runs = [
123- amor .data .amor_sample_run (608 ),
124- amor .data .amor_sample_run (609 ),
123+ amor .data .amor_run (608 ),
124+ amor .data .amor_run (609 ),
125125 ]
126126 pipeline = with_filenames (amor_pipeline , SampleRun , sample_runs )
127127 pipeline [SampleRotation [SampleRun ]] = pipeline .compute (
@@ -135,16 +135,16 @@ def test_pipeline_can_compute_reflectivity_merging_events_from_multiple_runs(
135135@pytest .mark .filterwarnings ("ignore:Invalid transformation, missing attribute" )
136136def test_pipeline_merging_events_result_unchanged (amor_pipeline : sciline .Pipeline ):
137137 sample_runs = [
138- amor .data .amor_sample_run (608 ),
138+ amor .data .amor_run (608 ),
139139 ]
140140 pipeline = with_filenames (amor_pipeline , SampleRun , sample_runs )
141141 pipeline [SampleRotation [SampleRun ]] = pipeline .compute (
142142 SampleRotation [SampleRun ]
143143 ) + sc .scalar (0.05 , unit = "deg" )
144144 result = pipeline .compute (ReflectivityOverQ ).hist ()
145145 sample_runs = [
146- amor .data .amor_sample_run (608 ),
147- amor .data .amor_sample_run (608 ),
146+ amor .data .amor_run (608 ),
147+ amor .data .amor_run (608 ),
148148 ]
149149 pipeline = with_filenames (amor_pipeline , SampleRun , sample_runs )
150150 pipeline [SampleRotation [SampleRun ]] = pipeline .compute (
@@ -162,7 +162,7 @@ def test_pipeline_merging_events_result_unchanged(amor_pipeline: sciline.Pipelin
162162@pytest .mark .filterwarnings ("ignore:Failed to convert .* into a transformation" )
163163@pytest .mark .filterwarnings ("ignore:Invalid transformation, missing attribute" )
164164def test_proton_current (amor_pipeline : sciline .Pipeline ):
165- amor_pipeline [Filename [SampleRun ]] = amor .data .amor_sample_run (611 )
165+ amor_pipeline [Filename [SampleRun ]] = amor .data .amor_run (611 )
166166 da_without_proton_current = amor_pipeline .compute (ReducibleData [SampleRun ])
167167
168168 proton_current = [1 , 2 , 0.1 ]
0 commit comments