Skip to content

Commit

Permalink
Move indirect diffraction reducer to new API.
Browse files Browse the repository at this point in the history
It's not SANS but given that the base-class has to move too.
Refs #7469
  • Loading branch information
martyngigg committed Jul 22, 2013
1 parent 115f315 commit 9969e5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/scripts/Inelastic/IndirectDiffractionReduction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from mantidsimple import *
import mantid
from msg_reducer import MSGReducer
import inelastic_indirect_reduction_steps as steps

Expand All @@ -21,13 +21,13 @@ def _setup_steps(self):
else:
return

step = mtd.createAlgorithm("ConvertUnits")
step = mantid.FrameworkManager.createAlgorithm("ConvertUnits")
step.setPropertyValue("Target", "dSpacing")
step.setPropertyValue("EMode", "Elastic")
self.append_step(step)

if self._rebin_string is not None:
step = mtd.createAlgorithm("Rebin")
step = mantid.FrameworkManager.createAlgorithm("Rebin")
step.setPropertyValue("Params", self._rebin_string)
self.append_step(step)

Expand Down

0 comments on commit 9969e5b

Please sign in to comment.