Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	Code/Mantid/scripts/Inelastic/IndirectBayes.py
Re #8391
  • Loading branch information
mantid-roman committed Jan 30, 2014
2 parents f656b8c + 11ec9b4 commit 71e8a9c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Code/Mantid/scripts/Inelastic/IndirectBayes.py
Expand Up @@ -19,6 +19,19 @@
import sys, platform, math, os.path, numpy as np
mp = import_mantidplot()

def readASCIIFile(file_name):
workdir = config['defaultsave.directory']

file_path = os.path.join(workdir, file_name)
asc = []

with open(file_path, 'r') as handle:
for line in handle:
line = line.rstrip()
asc.append(line)

return asc

def CalcErange(inWS,ns,erange,binWidth):
#length of array in Fortran
array_len = 4096
Expand Down Expand Up @@ -54,19 +67,6 @@ def CalcErange(inWS,ns,erange,binWidth):

return nout,bnorm,Xout,X,Y,E

def readASCIIFile(file_name):
workdir = config['defaultsave.directory']

file_path = os.path.join(workdir, file_name)
asc = []

with open(file_path, 'r') as handle:
for line in handle:
line = line.rstrip()
asc.append(line)

return asc

def GetXYE(inWS,n,array_len):
Xin = mtd[inWS].readX(n)
N = len(Xin)-1 # get no. points from length of x array
Expand Down

0 comments on commit 71e8a9c

Please sign in to comment.