Skip to content

Commit

Permalink
Refs #8514 removed quick script case for loaded in ADS or not
Browse files Browse the repository at this point in the history
There was a section in the quick script that shouldn't have been there as it was doing different thigns depending if the ADS had a workspace or not.

It is now only using the case as if it wasn't in the ADS in order to avoid a Divide error.
  • Loading branch information
keithnbrown committed Nov 28, 2013
1 parent d18e10c commit 173b7e1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Code/Mantid/scripts/Reflectometry/isis_reflectometry/quick.py
Expand Up @@ -171,13 +171,8 @@ def quick(run, theta=0, pointdet=1,roi=[0,0], db=[0,0], trans='', polcorr=0, use
_monInt = Integration(InputWorkspace=_I0P,RangeLower=intmin,RangeUpper=intmax)
IvsLam = Divide(LHSWorkspace=_detector_ws,RHSWorkspace=_monInt)
names = mtd.getObjectNames()
if trans in names:
trans = RebinToWorkspace(WorkspaceToRebin=trans,WorkspaceToMatch=IvsLam,OutputWorkspace=trans)
IvsLam = Divide(LHSWorkspace=IvsLam,RHSWorkspace=trans,OutputWorkspace="IvsLam") # TODO: Hardcoded names are bad
else:
IvsLam = transCorr(trans, IvsLam)
print type(IvsLam)
RenameWorkspace(InputWorkspace=IvsLam, OutputWorkspace="IvsLam") # TODO: Hardcoded names are bad
IvsLam = transCorr(trans, IvsLam)
RenameWorkspace(InputWorkspace=IvsLam, OutputWorkspace="IvsLam") # TODO: Hardcoded names are bad


# Convert to I vs Q
Expand Down

0 comments on commit 173b7e1

Please sign in to comment.