Skip to content

Commit

Permalink
Reduced line lengths, fix a few pylint warnings
Browse files Browse the repository at this point in the history
Refs #9345
  • Loading branch information
DanNixon committed Sep 2, 2014
1 parent dbaf581 commit cfb1664
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -107,14 +107,18 @@ def PyExec(self):
if self._out_name is "":
self._out_name = self._in_ws[:-10] + '_' + self._jump_function + 'fit'

Fit(Function=function, InputWorkspace=spectrum_ws, CreateOutput=True, Output=self._out_name, StartX=self._q_min, EndX=self._q_max)
Fit(Function=function, InputWorkspace=spectrum_ws, CreateOutput=True, Output=self._out_name,
StartX=self._q_min, EndX=self._q_max)
fit_workspace = self._out_name + '_Workspace'

# Populate sample logs
CopyLogs(InputWorkspace=self._in_ws, OutputWorkspace=fit_workspace)
AddSampleLog(Workspace=fit_workspace, LogName="jump_function", LogType="String", LogText=self._jump_function)
AddSampleLog(Workspace=fit_workspace, LogName="q_min", LogType="Number", LogText=str(self._q_min))
AddSampleLog(Workspace=fit_workspace, LogName="q_max", LogType="Number", LogText=str(self._q_max))
AddSampleLog(Workspace=fit_workspace, LogName="jump_function", LogType="String",
LogText=self._jump_function)
AddSampleLog(Workspace=fit_workspace, LogName="q_min", LogType="Number",
LogText=str(self._q_min))
AddSampleLog(Workspace=fit_workspace, LogName="q_max", LogType="Number",
LogText=str(self._q_max))

self._process_output(fit_workspace)

Expand Down

0 comments on commit cfb1664

Please sign in to comment.