Skip to content

Commit

Permalink
Refs #8391 Fix bin widths again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Nov 15, 2013
1 parent 82658b1 commit 53f6c8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/scripts/Inelastic/IndirectBayes.py
Expand Up @@ -40,7 +40,7 @@ def CalcErange(inWS,ns,erange,binWidth):

#get indicies either side of energy range
minIndex = np.where(Xdata==xInMin)[0][0]+1
maxIndex = np.where(Xdata==xInMax)[0][0]
maxIndex = np.where(Xdata==xInMax)[0][0]+1

#check we're using a valid range
if binWidth == 0:
Expand All @@ -62,7 +62,7 @@ def CalcErange(inWS,ns,erange,binWidth):
Xout = [sum(bin)*bnorm for bin in Xin]

#count number of bins
nbins = len(Xout)-1
nbins = len(Xout)

nout = [nbins, minIndex, maxIndex]

Expand Down

0 comments on commit 53f6c8a

Please sign in to comment.