Commit 95d6ecf7 authored by Zhang, Chen's avatar Zhang, Chen Committed by Peterson, Peter
Browse files

fix bug where getHistory called twice

parent b3f8b07b
......@@ -489,7 +489,7 @@ class SNSPowderReduction(DistributedDataProcessorAlgorithm):
if can_run_ws_name in mtd:
hstry = mtd[can_run_ws_name].getHistory()
if not hstry.empty():
last_absMethod = hstry.getHistory().getAlgorithm(0).getPropertyValue("TypeOfCorrection")
last_absMethod = hstry.getAlgorithm(0).getPropertyValue("TypeOfCorrection")
if last_absMethod != self._absMethod:
f"Remove {can_run_ws_name} as it is generated with a different method")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment