Skip to content

Commit

Permalink
Add original run numbers as sample log
Browse files Browse the repository at this point in the history
Refs #10855
  • Loading branch information
DanNixon committed Jan 7, 2015
1 parent 00d8feb commit b04023c
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -201,7 +201,7 @@ def _load_files(self):
summed_monitor_ws_name = raw_workspaces[0] + '_mon'

# Get a list of the run numbers for the original data
run_numbers = [mtd[ws_name].getRunNumber() for ws_name in raw_workspaces]
run_numbers = ','.join([str(mtd[ws_name].getRunNumber()) for ws_name in raw_workspaces])

# Generate lists of the detector and monitor workspaces
detector_workspaces = ','.join(raw_workspaces)
Expand All @@ -226,6 +226,10 @@ def _load_files(self):
Scale(InputWorkspace=summed_monitor_ws_name, OutputWorkspace=summed_monitor_ws_name,
Factor=scale_factor)

# Add the list of run numbers to the result workspace as a sample log
AddSampleLog(Workspace=summed_detector_ws_name, LogName='multi_run_numbers',
LogType='String', LogText=run_numbers)

# Only have the one workspace now
raw_workspaces = [summed_detector_ws_name]

Expand Down

0 comments on commit b04023c

Please sign in to comment.