Skip to content

Commit

Permalink
re #8505: Avoid destructing the monitor workspace
Browse files Browse the repository at this point in the history
SANSUtility: fromEvent2Histogram
  • Loading branch information
gesnerpassos committed Nov 28, 2013
1 parent 0bce888 commit e7ef929
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Code/Mantid/scripts/SANS/SANSUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,11 @@ def fromEvent2Histogram(ws_event, ws_monitor = None):

aux_hist = RebinToWorkspace(ws_event, ws_monitor, False)

monitor_ws_name = ws_monitor.name()
ConjoinWorkspaces(ws_monitor, aux_hist, CheckOverlapping=True)
name = '__monitor_tmp'
ws_monitor.clone(OutputWorkspace=name)
ConjoinWorkspaces(name, aux_hist, CheckOverlapping=True)

ws_hist = RenameWorkspace(monitor_ws_name, OutputWorkspace=str(ws_event))
ws_hist = RenameWorkspace(name, OutputWorkspace=str(ws_event))

return ws_hist

Expand Down

0 comments on commit e7ef929

Please sign in to comment.