class FindSatellitePeaksTestFixedNumQ(systemtesting.MantidSystemTest): def requiredFiles(self): return [ "WISH_md_small.nxs", "WISH_peak_hkl_small.nxs", "WISH_peak_hkl_frac_small.nxs" ] def runTest(self): md_workspace, main_peaks, satellite_peaks = load_files() fixed_params = { "PeakRadius": 0.3, "BackgroundInnerRadius": 0.3, "BackgroundOuterRadius": 0.4, "OutputWorkspace": "refine_peaks_test" } k = 2 self._satellites_refined = FindSatellitePeaks( NuclearPeaks=main_peaks, SatellitePeaks=satellite_peaks, MDWorkspace=md_workspace, NumOfQs=k, **fixed_params) def validate(self): return self._satellites_refined.name( ), 'refine_satellites_fixed_q_test_04012021.nxs'
class FindSatellitePeaksTestAutoFindQ(systemtesting.MantidSystemTest): def requiredFiles(self): return [ "WISH_md_small.nxs", "WISH_peak_hkl_small.nxs", "WISH_peak_hkl_frac_small.nxs" ] def runTest(self): md_workspace, main_peaks, satellite_peaks = load_files() fixed_params = { "PeakRadius": 0.3, "BackgroundInnerRadius": 0.3, "BackgroundOuterRadius": 0.4, "OutputWorkspace": "refine_peaks_test" } threshold = 1.0 self._satellites_refined = FindSatellitePeaks( NuclearPeaks=main_peaks, SatellitePeaks=satellite_peaks, MDWorkspace=md_workspace, ClusterThreshold=threshold, **fixed_params) def validate(self): return self._satellites_refined.name( ), 'refine_satellites_auto_q_test.nxs'
class FindSatellitePeaksTestAutoFindQ(systemtesting.MantidSystemTest): def requiredFiles(self): return ["WISH_md_small.nxs", "WISH_peak_hkl_small.nxs", "WISH_peak_hkl_frac_small.nxs"] def runTest(self): md_workspace, main_peaks, satellite_peaks = load_files() fixed_params = { "PeakRadius": 0.3, "BackgroundInnerRadius": 0.3, "BackgroundOuterRadius": 0.4, "OutputWorkspace": "refine_peaks_test" } threshold = 1.0 self._satellites_refined = FindSatellitePeaks(NuclearPeaks=main_peaks, SatellitePeaks=satellite_peaks, MDWorkspace=md_workspace, ClusterThreshold=threshold, **fixed_params) def validate(self): return self._satellites_refined.name(), 'refine_satellites_auto_q_test.nxs'