Skip to content

Commit

Permalink
In this version, all the previous scaled workspaces are removed when …
Browse files Browse the repository at this point in the history
…starting the reduction. This refs #4303
  • Loading branch information
JeanBilheux committed May 30, 2012
1 parent ab6f4d7 commit 747d1ea
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ def PyExec(self):
import math
from reduction.instruments.reflectometer import wks_utility

from mantid import mtd
#remove all previous workspaces
list_mt = mtd.getObjectNames()
for _mt in list_mt:
if _mt.find('_scaled') != -1:
mtd.remove(_mt)

from mantidsimple import mtd

run_numbers = self.getProperty("RunNumbers")

backSubMethod = 2 #1 uses RefRoi, 2 used own method
Expand Down

0 comments on commit 747d1ea

Please sign in to comment.