Skip to content

Commit

Permalink
update paths to run from calibration root
Browse files Browse the repository at this point in the history
  • Loading branch information
MialLewis committed May 3, 2023
1 parent 70a9e4a commit a5d8f04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from mantid.api import FileProperty, FileAction, PythonAlgorithm,AlgorithmManager
from mantid.simpleapi import CreateEmptyTableWorkspace, DeleteWorkspace, ReplaceSpecialValues, GroupWorkspaces, mtd,\
ConvertTableToMatrixWorkspace, ConjoinWorkspaces, Transpose, PlotPeakByLogValue,RenameWorkspace
from unpackaged.vesuvio_calibration.calibration_scripts.calibrate_vesuvio_helper_functions import EVSGlobals, EVSMiscFunctions,\
from calibration_scripts.calibrate_vesuvio_helper_functions import EVSGlobals, EVSMiscFunctions,\
InvalidDetectors
>>>>>>> 1fa741e (respond to pr review comments)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_get_all_detectors(self):
invalid_detectors = InvalidDetectors([10, 20, 30, 150, 160, 170])
self.assertEqual(invalid_detectors.get_all_invalid_detectors(), input_invalid_detectors)

@patch('unpackaged.vesuvio_calibration.calibration_scripts.calibrate_vesuvio_helper_functions'
@patch('calibration_scripts.calibrate_vesuvio_helper_functions'
'.EVSMiscFunctions.read_fitting_result_table_column')
def test_filter_peak_centres_for_invalid_detectors_front(self, mock_read_fitting_result):
invalid_detectors = InvalidDetectors([10, 20, 30, 150, 160, 170])
Expand All @@ -117,7 +117,7 @@ def test_filter_peak_centres_for_invalid_detectors_front(self, mock_read_fitting
out_peak_centres = invalid_detectors.filter_peak_centres_for_invalid_detectors([3, 134], peak_table)
self.assertEqual(list(np.argwhere(np.isnan(out_peak_centres)).transpose()[0]), [7, 17, 27])

@patch('unpackaged.vesuvio_calibration.calibration_scripts.calibrate_vesuvio_helper_functions'
@patch('calibration_scripts.calibrate_vesuvio_helper_functions'
'.EVSMiscFunctions.read_fitting_result_table_column')
def test_filter_peak_centres_for_invalid_detectors_back(self, mock_read_fitting_result):
invalid_detectors = InvalidDetectors([10, 20, 30, 150, 160, 170])
Expand All @@ -127,7 +127,7 @@ def test_filter_peak_centres_for_invalid_detectors_back(self, mock_read_fitting_
out_peak_centres = invalid_detectors.filter_peak_centres_for_invalid_detectors([135, 198], peak_table)
self.assertEqual(list(np.argwhere(np.isnan(out_peak_centres)).transpose()[0]), [15, 25, 35])

@patch('unpackaged.vesuvio_calibration.calibration_scripts.calibrate_vesuvio_helper_functions'
@patch('calibration_scripts.calibrate_vesuvio_helper_functions'
'.EVSMiscFunctions.read_fitting_result_table_column')
def test_filter_peak_centres_for_invalid_detectors_invalid_range(self, mock_read_fitting_result):
invalid_detectors = InvalidDetectors([10, 20, 30, 150, 160, 170])
Expand Down

0 comments on commit a5d8f04

Please sign in to comment.