Skip to content

Commit

Permalink
Refs #8116 Correction for system test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Nov 1, 2013
1 parent 29258bc commit 48ed2cc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Code/Mantid/scripts/Inelastic/IndirectAbsCor.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@ def FlatAbs(ncan, thick, density, sigs, siga, angles, waves):

# tsec is the angle the scattered beam makes with the normal to the sample surface.
tsec = theta1-tcan1
tsec = tsec*PICONV


sec1 = 1./math.cos(canAngle)
sec2 = 1./math.cos(tsec)


#vector version of fact
vecFact = np.vectorize(Fact)
Expand All @@ -279,7 +278,9 @@ def FlatAbs(ncan, thick, density, sigs, siga, angles, waves):
#default to 1 for everything
return ass, assc, acsc, acc
else:

tsec = tsec*PICONV
sec2 = 1./math.cos(tsec)

fs = vecFact(sampleXSection, samThickness, sec1, sec2)

sampleSec1 = sampleXSection * samThickness * sec1
Expand Down

0 comments on commit 48ed2cc

Please sign in to comment.