From f63e84d05271c9cd7a83490372d2ab6011856684 Mon Sep 17 00:00:00 2001 From: GuiMacielPereira Date: Mon, 12 Feb 2024 15:32:34 +0000 Subject: [PATCH] Corrected artifact from previous ws check - The recently introduced ws check creates a local_ws that is unused outside the function - This triggers a safety prompt that asks the user whether or not they want to delete this worksapce. - The deletion of the workspace was meant to be there from the beggining. --- mvesuvio/vesuvio_analysis/ICHelpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mvesuvio/vesuvio_analysis/ICHelpers.py b/mvesuvio/vesuvio_analysis/ICHelpers.py index 19d2cfb9..0f664350 100644 --- a/mvesuvio/vesuvio_analysis/ICHelpers.py +++ b/mvesuvio/vesuvio_analysis/ICHelpers.py @@ -1,4 +1,4 @@ -from mantid.simpleapi import Load, LoadVesuvio, SaveNexus +from mantid.simpleapi import Load, LoadVesuvio, SaveNexus, DeleteWorkspace from pathlib import Path from mvesuvio.scripts import handle_config from mantid.kernel import logger @@ -166,6 +166,8 @@ def wsHistoryMatchesInputs(runs, mode, ipfile, localPath): ) return False + print("\nLocally saved workspace metadata matched with analysis inputs.\n") + DeleteWorkspace(local_ws) return True