Skip to content

Commit

Permalink
refs #8585 Corrected x data for histograms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Jan 7, 2014
1 parent 933b83d commit 54faf7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/scripts/Inelastic/IndirectBayes.py
Expand Up @@ -455,13 +455,12 @@ def C2Fw(prog,sname):
nspec = int(var[0])
first = 7

x_data = []
amplitude_data, height_data, width_data = [], [], []
amplitude_error, height_error, width_error = [], [], []

for m in range(nspec):
first,Q,i0,fw,it = LorBlock(asc,first,nl)
x_data += [Q for i in range(nl*n_params)]
x.append(Q)

#collect amplitude, height and width data
width_data += fw[:nl]
Expand All @@ -473,14 +472,15 @@ def C2Fw(prog,sname):
amplitude_error += it[nl:nl+nl]
height_error += [i0[1] for i in range(nl)]

x += x_data
y += amplitude_data + height_data + width_data
e += amplitude_error + height_error + width_error

for j in range(1, nl+1):
for name in names:
vAxisNames.append('f'+str(nl)+'.f'+str(j)+'.'+name)

#repeat x data for each of the histograms
x = x * (nhist/3)
CreateWorkspace(OutputWorkspace=output_workspace, DataX=x, DataY=y, DataE=e, Nspec=nhist,
UnitX='MomentumTransfer', YUnitLabel='', VerticalAxisUnit='Text', VerticalAxisValues=vAxisNames)

Expand Down

0 comments on commit 54faf7d

Please sign in to comment.