Skip to content

Commit

Permalink
Merge pull request #18865 from mantidproject/16925_Fix_reduction_with…
Browse files Browse the repository at this point in the history
…_no_transmission_run

Fix bug in reflectometry GUI
  • Loading branch information
NickDraper committed Feb 16, 2017
2 parents def2d97 + 16c4bbc commit f46a26a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/Interface/ui/reflectometer/refl_gui.py
Expand Up @@ -1042,7 +1042,8 @@ def _do_run(self, runno, row, which):
alg = AlgorithmManager.create("ReflectometryReductionOneAuto")
alg.initialize()
alg.setProperty("InputWorkspace", ws[i])
alg.setProperty("FirstTransmissionRun", group_trans_ws)
if group_trans_ws:
alg.setProperty("FirstTransmissionRun", group_trans_ws)
if angle is not None:
alg.setProperty("ThetaIn", angle)
alg.setProperty("OutputWorkspaceBinned", runno+'_IvsQ_binned_'+str(i+1))
Expand All @@ -1066,15 +1067,16 @@ def _do_run(self, runno, row, which):
wlamGroup.append(wlam)
thetaGroup.append(th)

wqBinned = GroupWorkspaces(InputWorkspaces=wqGroup, OutputWorkspace=runno+'_IvsQ_binned')
wqBinned = GroupWorkspaces(InputWorkspaces=wqGroupBinned, OutputWorkspace=runno+'_IvsQ_binned')
wq = GroupWorkspaces(InputWorkspaces=wqGroup, OutputWorkspace=runno+'_IvsQ')
wlam = GroupWorkspaces(InputWorkspaces=wlamGroup, OutputWorkspace=runno+'_IvsLam')
th = thetaGroup[0]
else:
alg = AlgorithmManager.create("ReflectometryReductionOneAuto")
alg.initialize()
alg.setProperty("InputWorkspace", ws)
alg.setProperty("FirstTransmissionRun", transmission_ws)
if transmission_ws:
alg.setProperty("FirstTransmissionRun", transmission_ws)
if angle is not None:
alg.setProperty("ThetaIn", angle)
alg.setProperty("OutputWorkspaceBinned", runno+'_IvsQ_binned')
Expand Down

0 comments on commit f46a26a

Please sign in to comment.