Skip to content

Commit

Permalink
Corrected artifact from previous ws check
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
GuiMacielPereira committed Feb 12, 2024
1 parent 763f4c3 commit f63e84d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mvesuvio/vesuvio_analysis/ICHelpers.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit f63e84d

Please sign in to comment.