Skip to content
Snippets Groups Projects
Commit 59fd2dc4 authored by Owen Arnold's avatar Owen Arnold
Browse files

Merge branch '11304_createmd' of github.com:mantidproject/mantid into 11304_createmd

parents 8628ddae 7f255e0f
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