From 0cd02a0c3787f956a88df0256d2a644db31f84df Mon Sep 17 00:00:00 2001 From: Conor Finn <conor.finn@stfc.ac.uk> Date: Mon, 21 Oct 2019 17:19:13 +0100 Subject: [PATCH] RE #27012 Make focusing save to the file system Creating a new focus now saves a nexus file to the file system. The old GUI saves multiple file types, but since I'm not sure what they actually use, nexus seems like a safe proof of concept for now. --- .../gui/engineering_diffraction/tabs/focus/test/test_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Engineering/gui/engineering_diffraction/tabs/focus/test/test_model.py b/scripts/Engineering/gui/engineering_diffraction/tabs/focus/test/test_model.py index b21953fdf7e..c855f821acc 100644 --- a/scripts/Engineering/gui/engineering_diffraction/tabs/focus/test/test_model.py +++ b/scripts/Engineering/gui/engineering_diffraction/tabs/focus/test/test_model.py @@ -90,10 +90,10 @@ class FocusModelTest(unittest.TestCase): "North", mocked_workspace, None) self.assertEqual(1, save.call_count) - save.assert_called_with(mocked_workspace, output_file) + save.assert_called_with(Filename=output_file, InputWorkspace=mocked_workspace) @patch(file_path + ".SaveNexus") - def test_save_output_files_nexus_with_no_RB_number(self, save): + def test_save_output_files_nexus_with_RB_number(self, save): self.model.save_focused_output_files_as_nexus("ENGINX", "Path/To/ENGINX000123.whatever", "North", "mocked-workspace", "An Experiment Number") -- GitLab