Skip to content

Commit

Permalink
Fixed long line and removed unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiMacielPereira committed Nov 13, 2023
1 parent fda5254 commit 83ba1b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/mslice/util/mantid/algorithm_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ def alg_wrapper(*args, **kwargs):
kwargs[ky] = _name_or_wrapper_to_workspace(kwargs[ky])

if _alg_has_outputws(algorithm):
ads_name = WorkspaceNameHandler(output_name).hideMslInAds() if output_name else WorkspaceNameHandler(str(uuid4())[:8]).hideTmpMslInAds()
if output_name:
ads_name = WorkspaceNameHandler(output_name).hideMslInAds()
else:
ads_name = WorkspaceNameHandler(str(uuid4())[:8]).hideTmpMslInAds()

store = kwargs.pop('store', True)
if not store:
ads_name = WorkspaceNameHandler(ads_name).hideFromMsl()
Expand Down
2 changes: 0 additions & 2 deletions src/mslice/workspace/helperfunctions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import pickle
from uuid import uuid4
import codecs

from mantid.simpleapi import DeleteWorkspace, RenameWorkspace


Expand Down

0 comments on commit 83ba1b2

Please sign in to comment.