Skip to content
Snippets Groups Projects
Commit afa813a5 authored by Savici, Andrei T.'s avatar Savici, Andrei T.
Browse files

Update CreateMD.py

parent ed491ad6
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ class CreateMD(DataProcessorAlgorithm):
raise ValueError("Either specify all of alatt, angledeg, u, v or none of them")
elif all(ub_params):
if input_workspace.sample().hasOrientedLattice():
self.g_log.warning("Sample already has a UB. This will not be overwritten by %s. Use ClearUB and re-run.", self.name())
logger.warning("Sample already has a UB. This will not be overwritten by %s. Use ClearUB and re-run.", self.name())
else:
self._set_ub(workspace=input_workspace, a=alatt[0], b=alatt[1], c=alatt[2], alpha=angdeg[0], beta=angdeg[1], gamma=angdeg[2], u=u, v=v)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment