Skip to content

Commit

Permalink
Switch to AlgorithmFactory.subscribe rather than registerAlgorithm
Browse files Browse the repository at this point in the history
since the latter is now deprecated. Refs #970
  • Loading branch information
martyngigg committed Apr 19, 2013
1 parent f0b0b13 commit 3c250c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Check if the workspace has some given sample logs
*WIKI*"""

from mantid.api import PythonAlgorithm, registerAlgorithm, WorkspaceProperty
from mantid.api import PythonAlgorithm, AlgorithmFactory, WorkspaceProperty
import mantid.simpleapi
from mantid.kernel import Direction, logger
from string import *
Expand Down Expand Up @@ -48,4 +48,4 @@ def PyExec(self):
return


registerAlgorithm(CheckForSampleLogs)
AlgorithmFactory.subscribe(CheckForSampleLogs)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This range is moved around if a prompt pulse is in this interval, or it goes below the TOF frame minimum.
*WIKI*"""

from mantid.api import PythonAlgorithm, registerAlgorithm
from mantid.api import PythonAlgorithm, AlgorithmFactory
import mantid.simpleapi
from mantid.kernel import FloatBoundedValidator,Direction
from numpy import sqrt,floor
Expand Down Expand Up @@ -89,4 +89,4 @@ def PyExec(self):
return


registerAlgorithm(SuggestTibCNCS)
AlgorithmFactory.subscribe(SuggestTibCNCS)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Suggest possible time independent background range for HYSPEC. It works for incident energy range from 3 to 100 meV.
*WIKI*"""

from mantid.api import PythonAlgorithm, registerAlgorithm
from mantid.api import PythonAlgorithm, AlgorithmFactory
import mantid.simpleapi
from mantid.kernel import FloatBoundedValidator,Direction,logger
from numpy import sqrt,divide
Expand Down Expand Up @@ -120,4 +120,4 @@ def PyExec(self):
return


registerAlgorithm(SuggestTibHYSPEC)
AlgorithmFactory.subscribe(SuggestTibHYSPEC)

0 comments on commit 3c250c3

Please sign in to comment.