Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/8116_fltabs_code_tidy'
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Nov 19, 2013
2 parents 23cf945 + 0236140 commit af1e394
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Code/Mantid/scripts/Inelastic/IndirectAbsCor.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,13 @@ def calcThicknessAtSec(xSection, thickness, sec):

return thickSec1, thickSec2

def calcFlatAbsCan(ass, canXSection, thick, sec):
def calcFlatAbsCan(ass, canXSection, canThickness1, canThickness2, sampleSec1, sampleSec2, sec):
nlam = len(canXSection)

assc = np.ones(nlam)
acsc = np.ones(nlam)
acc = np.ones(nlam)

#thickness of the can
canThickness1, canThickness2 = thick

sec1, sec2 = sec

#vector version of fact
Expand Down Expand Up @@ -341,6 +340,6 @@ def FlatAbs(ncan, thick, density, sigs, siga, angles, waves):
if useCan:
#calculate can cross section
canXSection = (canScatt + canAbs * waves /1.8) * canDensity
assc, acsc, acc = calcFlatAbsCan(ass, canXSection, [canThickness1, canThickness2], [sec1, sec2])
assc, acsc, acc = calcFlatAbsCan(ass, canXSection, canThickness1, canThickness2, sampleSec1, sampleSec2, [sec1, sec2])

return ass, assc, acsc, acc

0 comments on commit af1e394

Please sign in to comment.