Skip to content
Snippets Groups Projects
Commit a2453d02 authored by Elliot Oram's avatar Elliot Oram
Browse files

lower case on variable names

Refs #13826
parent b437cfbf
No related branches found
No related tags found
No related merge requests found
...@@ -23,9 +23,9 @@ class QLRun(PythonAlgorithm): ...@@ -23,9 +23,9 @@ class QLRun(PythonAlgorithm):
_width = None _width = None
_res_norm = None _res_norm = None
_wfile = None _wfile = None
_Loop = None _loop = None
_Save = None _save = None
_Plot = None _plot = None
def category(self): def category(self):
return "Workflow\\MIDAS;PythonAlgorithms" return "Workflow\\MIDAS;PythonAlgorithms"
...@@ -122,9 +122,9 @@ class QLRun(PythonAlgorithm): ...@@ -122,9 +122,9 @@ class QLRun(PythonAlgorithm):
self._width = self.getProperty('FixedWidth').value self._width = self.getProperty('FixedWidth').value
self._res_norm = self.getProperty('UseResNorm').value self._res_norm = self.getProperty('UseResNorm').value
self._wfile = self.getPropertyValue('WidthFile') self._wfile = self.getPropertyValue('WidthFile')
self._Loop = self.getProperty('Loop').value self._loop = self.getProperty('Loop').value
self._Save = self.getProperty('Save').value self._save = self.getProperty('Save').value
self._Plot = self.getPropertyValue('Plot') self._plot = self.getPropertyValue('Plot')
def PyExec(self): def PyExec(self):
...@@ -132,11 +132,11 @@ class QLRun(PythonAlgorithm): ...@@ -132,11 +132,11 @@ class QLRun(PythonAlgorithm):
run_f2py_compatibility_test() run_f2py_compatibility_test()
from IndirectBayes import (CalcErange, GetXYE, ReadNormFile, \ from IndirectBayes import (CalcErange, GetXYE, ReadNormFile,
ReadWidthFile, QLAddSampleLogs, C2Fw, \ ReadWidthFile, QLAddSampleLogs, C2Fw,
C2Se, QuasiPlot) C2Se, QuasiPlot)
from IndirectCommon import (getDefaultWorkingDirectory, CheckXrange,\ from IndirectCommon import (getDefaultWorkingDirectory, CheckXrange,
CheckAnalysers, getEfixed, GetThetaQ,\ CheckAnalysers, getEfixed, GetThetaQ,
CheckHistZero, CheckHistSame) CheckHistZero, CheckHistSame)
self.log().information('QLRun input') self.log().information('QLRun input')
...@@ -178,7 +178,7 @@ class QLRun(PythonAlgorithm): ...@@ -178,7 +178,7 @@ class QLRun(PythonAlgorithm):
totalNoSam = nsam totalNoSam = nsam
#check if we're performing a sequential fit #check if we're performing a sequential fit
if self._Loop != True: if self._loop != True:
nsam = 1 nsam = 1
nres = CheckHistZero(self._resWS)[0] nres = CheckHistZero(self._resWS)[0]
...@@ -319,12 +319,12 @@ class QLRun(PythonAlgorithm): ...@@ -319,12 +319,12 @@ class QLRun(PythonAlgorithm):
probWs = CreateWorkspace(OutputWorkspace=probWS, DataX=xProb, DataY=yProb, DataE=eProb,\ probWs = CreateWorkspace(OutputWorkspace=probWS, DataX=xProb, DataY=yProb, DataE=eProb,\
Nspec=3, UnitX='MomentumTransfer') Nspec=3, UnitX='MomentumTransfer')
outWS = C2Fw(self._samWS[:-4],fname) outWS = C2Fw(self._samWS[:-4],fname)
if self._Plot != 'None': if self._plot != 'None':
QuasiPlot(fname,self._Plot,res_plot,self._Loop) QuasiPlot(fname,self._plot,res_plot,self._loop)
if self._program == 'QSe': if self._program == 'QSe':
outWS = C2Se(fname) outWS = C2Se(fname)
if self._Plot != 'None': if self._plot != 'None':
QuasiPlot(fname,self._Plot,res_plot,self._Loop) QuasiPlot(fname,self._plot,res_plot,self._loop)
#Add some sample logs to the output workspaces #Add some sample logs to the output workspaces
CopyLogs(InputWorkspace=self._samWS, OutputWorkspace=outWS) CopyLogs(InputWorkspace=self._samWS, OutputWorkspace=outWS)
...@@ -334,7 +334,7 @@ class QLRun(PythonAlgorithm): ...@@ -334,7 +334,7 @@ class QLRun(PythonAlgorithm):
QLAddSampleLogs(fitWS, self._resWS, prog, self._background, self._elastic, erange, QLAddSampleLogs(fitWS, self._resWS, prog, self._background, self._elastic, erange,
(nbin, nrbin), self._resnormWS, self._wfile) (nbin, nrbin), self._resnormWS, self._wfile)
if self._Save: if self._save:
fit_path = os.path.join(workdir,fitWS+'.nxs') fit_path = os.path.join(workdir,fitWS+'.nxs')
SaveNexusProcessed(InputWorkspace=fitWS, Filename=fit_path) SaveNexusProcessed(InputWorkspace=fitWS, Filename=fit_path)
out_path = os.path.join(workdir, outWS+'.nxs') # path name for nxs file out_path = os.path.join(workdir, outWS+'.nxs') # path name for nxs file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment