Skip to content

Commit

Permalink
Refs #4856 Add copy logs to fit workspaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Mar 17, 2014
1 parent c938a26 commit 00112b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/scripts/Inelastic/IndirectDataAnalysis.py
Expand Up @@ -1057,9 +1057,11 @@ def msdfit(ws, startX, endX, spec_min=0, spec_max=None, Save=False, Verbose=Fals
GroupWorkspaces(InputWorkspaces=','.join(group),OutputWorkspace=msdWS)

#add sample logs to output workspace
fit_workspaces = msdWS + '_Workspaces'
CopyLogs(InputWorkspace=ws, OutputWorkspace=msdWS)
AddSampleLog(Workspace=msdWS, LogName="start_x", LogType="Number", LogText=str(startX))
AddSampleLog(Workspace=msdWS, LogName="end_x", LogType="Number", LogText=str(endX))
CopyLogs(InputWorkspace=msdWS + '_A0', OutputWorkspace=fit_workspaces)

if Plot:
msdfitPlotSeq(msdWS, xlabel)
Expand All @@ -1070,7 +1072,7 @@ def msdfit(ws, startX, endX, spec_min=0, spec_max=None, Save=False, Verbose=Fals
logger.notice('Output msd file : '+msd_path)

EndTime('msdFit')
return msdWS + '_Workspaces'
return fit_workspaces

def plotInput(inputfiles,spectra=[]):
OneSpectra = False
Expand Down

0 comments on commit 00112b8

Please sign in to comment.