4
4
from mantid .api import AlgorithmFactory
5
5
from mantid .simpleapi import mtd
6
6
from mock import patch
7
- from unpackaged . vesuvio_calibration . tests .testhelpers .algorithms import create_algorithm
8
- from unpackaged . vesuvio_calibration . tests .testhelpers .system_test_base import EVSCalibrationTest , TestConstants
9
- from unpackaged . vesuvio_calibration . calibration_scripts .calibrate_vesuvio_helper_functions import EVSGlobals
10
- from unpackaged . vesuvio_calibration . tests .testhelpers .system_test_misc_functions import assert_allclose_excluding_bad_detectors
11
- from unpackaged . vesuvio_calibration . calibration_scripts .calibrate_vesuvio_analysis import EVSCalibrationAnalysis
12
- from unpackaged . vesuvio_calibration . calibration_scripts .calibrate_vesuvio_fit import EVSCalibrationFit
7
+ from tests .testhelpers .algorithms import create_algorithm
8
+ from tests .testhelpers .system_test_base import EVSCalibrationTest , TestConstants
9
+ from calibration_scripts .calibrate_vesuvio_helper_functions import EVSGlobals
10
+ from tests .testhelpers .system_test_misc_functions import assert_allclose_excluding_bad_detectors
11
+ from calibration_scripts .calibrate_vesuvio_analysis import EVSCalibrationAnalysis
12
+ from calibration_scripts .calibrate_vesuvio_fit import EVSCalibrationFit
13
13
from copy import copy
14
14
from os import path
15
15
@@ -40,7 +40,7 @@ def setUp(self):
40
40
self ._E1_fit = [False , True , True ]
41
41
self ._L0_fit = [False ]
42
42
43
- @patch ('unpackaged.vesuvio_calibration. calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
43
+ @patch ('calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
44
44
def test_copper (self , load_file_mock ):
45
45
self ._setup_copper_test ()
46
46
self ._output_workspace = "copper_analysis_test"
@@ -55,7 +55,7 @@ def test_copper(self, load_file_mock):
55
55
165 , 167 , 168 , 169 , 170 , 182 , 191 , 192 ]})
56
56
self ._assert_parameters_match_expected (params_table , detector_specific_r_tols )
57
57
58
- @patch ('unpackaged.vesuvio_calibration. calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
58
+ @patch ('calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
59
59
def test_lead (self , load_file_mock ):
60
60
self ._setup_lead_test ()
61
61
self ._output_workspace = "lead_analysis_test"
@@ -70,7 +70,7 @@ def test_lead(self, load_file_mock):
70
70
178 , 180 , 182 , 183 ]})
71
71
self ._assert_parameters_match_expected (params_table , detector_specific_r_tols )
72
72
73
- @patch ('unpackaged.vesuvio_calibration. calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
73
+ @patch ('calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
74
74
def test_niobium (self , load_file_mock ):
75
75
self ._setup_niobium_test ()
76
76
self ._output_workspace = "niobium_analysis_test"
@@ -88,7 +88,7 @@ def test_niobium(self, load_file_mock):
88
88
182 , 186 , 187 , 189 , 191 ]})
89
89
self ._assert_parameters_match_expected (params_table , detector_specific_r_tols )
90
90
91
- @patch ('unpackaged.vesuvio_calibration. calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
91
+ @patch ('calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
92
92
def test_copper_with_uranium (self , load_file_mock ):
93
93
self ._setup_copper_test ()
94
94
self ._output_workspace = "copper_analysis_test"
@@ -103,7 +103,7 @@ def test_copper_with_uranium(self, load_file_mock):
103
103
165 , 167 , 168 , 169 , 170 , 182 , 191 , 192 ]})
104
104
self ._assert_parameters_match_expected (params_table , detector_specific_r_tols )
105
105
106
- @patch ('unpackaged.vesuvio_calibration. calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
106
+ @patch ('calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
107
107
def test_lead_with_uranium (self , load_file_mock ):
108
108
self ._setup_lead_test ()
109
109
self ._output_workspace = "lead_analysis_test"
@@ -118,7 +118,7 @@ def test_lead_with_uranium(self, load_file_mock):
118
118
178 , 180 , 182 , 183 ]})
119
119
self ._assert_parameters_match_expected (params_table , detector_specific_r_tols )
120
120
121
- @patch ('unpackaged.vesuvio_calibration. calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
121
+ @patch ('calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
122
122
def test_copper_with_l0_calc (self , load_file_mock ):
123
123
self ._setup_copper_test ()
124
124
self ._L0_fit = [True , True , True , False , False , False ]
@@ -138,7 +138,7 @@ def test_copper_with_l0_calc(self, load_file_mock):
138
138
165 , 167 , 168 , 169 , 170 , 182 , 191 , 192 ]})
139
139
self ._assert_parameters_match_expected (params_table , detector_specific_r_tols )
140
140
141
- @patch ('unpackaged.vesuvio_calibration. calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
141
+ @patch ('calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
142
142
def test_copper_with_multiple_iterations (self , load_file_mock ):
143
143
self ._setup_copper_test ()
144
144
self ._iterations = 2
@@ -158,7 +158,7 @@ def test_copper_with_multiple_iterations(self, load_file_mock):
158
158
165 , 167 , 168 , 169 , 170 , 182 , 191 , 192 ]})
159
159
self ._assert_parameters_match_expected (params_table , detector_specific_r_tols )
160
160
161
- @patch ('unpackaged.vesuvio_calibration. calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
161
+ @patch ('calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
162
162
def test_copper_create_output (self , load_file_mock ):
163
163
self ._setup_copper_test ()
164
164
self ._output_workspace = "copper_analysis_test"
@@ -175,7 +175,7 @@ def test_copper_create_output(self, load_file_mock):
175
175
165 , 167 , 168 , 169 , 170 , 182 , 191 , 192 ]})
176
176
self ._assert_parameters_match_expected (params_table , detector_specific_r_tols )
177
177
178
- @patch ('unpackaged.vesuvio_calibration. calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
178
+ @patch ('calibration_scripts.calibrate_vesuvio_fit.EVSCalibrationFit._load_file' )
179
179
def test_copper_with_individual_and_global_fit (self , load_file_mock ):
180
180
self ._setup_copper_test ()
181
181
self ._output_workspace = "copper_analysis_test"
0 commit comments