Skip to content

Commit

Permalink
Still working on fixing issue with back. This refs #4303
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed May 1, 2012
1 parent df1e428 commit c07eb6c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Code/Mantid/Framework/PythonAPI/PythonAlgorithms/RefLReduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,19 +281,11 @@ def PyExec(self):
Factor=0.5,
Operation="Multiply")

# nbr_x_range = 1./(Xrange[1]-Xrange[0]+1)
# Scale(InputWorkspace=ws_data_bck+'_scale',
# OutputWorkspace=ws_data_bck+'_scale',
# Factor=nbr_x_range,
# Operation="Multiply")

print 'ws_histo_data: ' + ws_histo_data
print 'ws_data: ' + ws_data

Minus(LHSWorkspace=ws_histo_data,
RHSWorkspace=ws_data_bck+'_scale',
OutputWorkspace=ws_data)


# mtd.deleteWorkspace(ws_data_bck+'_scale')
mtd.deleteWorkspace(ws_data_bck)
# mtd.deleteWorkspace(ws_data_bck_1_rebin)
Expand Down Expand Up @@ -363,7 +355,8 @@ def PyExec(self):
OutputWorkspace=ws_norm_histo_data)

ws_data_bck = '_' + ws_name + '_NormBckWks'
ws_norm_rebinned = '_' + ws_name + '_NormRebinnedWks'
# ws_norm_rebinned = '_' + ws_name + '_NormRebinnedWks'
ws_norm_rebinned = ws_name + '_NormRebinnedWks'
if subtract_norm_bck:

print '-> substract background to direct beam'
Expand Down

0 comments on commit c07eb6c

Please sign in to comment.