Skip to content

Commit

Permalink
Correct the indexes SANSadd2.py
Browse files Browse the repository at this point in the history
The event data has the monitors in its head. Now, it copies the corresponded
values.

re #7600
  • Loading branch information
gesnerpassos committed Aug 7, 2013
1 parent 49f0dc0 commit 7884ac7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/scripts/SANS/SANSadd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def add_runs(runs, inst='sans2d', defType='.nxs', rawTypes=('.raw', '.s*', 'add'
wsOut.setY(i,wsInMonitor.dataY(i))
wsOut.setE(i,wsInMonitor.dataE(i))

for i in range(wsOut.getNumberHistograms() - mon_n):
wsOut.setY(i+mon_n, wsInDetector.dataY(i))
wsOut.setE(i+mon_n, wsInDetector.dataE(i))
for i in range(mon_n, wsOut.getNumberHistograms()):
wsOut.setY(i, wsInDetector.dataY(i))
wsOut.setE(i, wsInDetector.dataE(i))

if 'AddFilesSumTempory_Rebin' in mtd : DeleteWorkspace('AddFilesSumTempory_Rebin')

Expand Down

0 comments on commit 7884ac7

Please sign in to comment.