Skip to content

Commit

Permalink
Refs #5300 Rename algorithm with more verbose name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Feb 25, 2014
1 parent 07bc3ec commit ba1c07d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -12,7 +12,7 @@
import os.path
import numpy as np

class Moments(PythonAlgorithm):
class SofQWMoments(PythonAlgorithm):

def category(self):
return "Workflow\\MIDAS;PythonAlgorithms"
Expand Down Expand Up @@ -45,7 +45,7 @@ def PyExec(self):
Plot = self.getProperty('Plot').value
Save = self.getProperty('Save').value

StartTime('Moments')
StartTime('SofQWMoments')
num_spectra,num_w = CheckHistZero(sample_workspace)

if Verbose:
Expand Down Expand Up @@ -131,7 +131,7 @@ def PyExec(self):

self.setProperty("OutputWorkspace", output_workspace)

EndTime('Moments')
EndTime('SofQWMoments')

def _plot_moments(self, inputWS):
from IndirectImport import import_mantidplot
Expand All @@ -140,4 +140,5 @@ def _plot_moments(self, inputWS):
mp.plotSpectrum(inputWS+'_M0',0)
mp.plotSpectrum([inputWS+'_M2',inputWS+'_M4'],0)

AlgorithmFactory.subscribe(Moments) # Register algorithm with Mantid
# Register algorithm with Mantid
AlgorithmFactory.subscribe(SofQWMoments)
Expand Up @@ -79,7 +79,7 @@ namespace CustomInterfaces
scale = scaleString.toDouble();
}

Algorithm_sptr momentsAlg = AlgorithmManager::Instance().createUnmanaged("Moments", -1);
Algorithm_sptr momentsAlg = AlgorithmManager::Instance().createUnmanaged("SofQWMoments", -1);
momentsAlg->initialize();
momentsAlg->setProperty("Sample", workspaceName.toStdString());
momentsAlg->setProperty("Scale", scale);
Expand Down

0 comments on commit ba1c07d

Please sign in to comment.