Skip to content

Commit

Permalink
Solves the system tests that are failing
Browse files Browse the repository at this point in the history
the problem was with importing the modules in the very beggining. It was
necessary to let the modules to be imported in run time.

re #7690
  • Loading branch information
gesnerpassos committed Aug 8, 2013
1 parent 224bbad commit e067bd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Algorithm to start Force
from mantid.api import PythonAlgorithm, AlgorithmFactory
from mantid.kernel import StringListValidator, StringMandatoryValidator, logger
from IndirectForce import IbackStart, InxStart

class ForCE(PythonAlgorithm):

Expand Down Expand Up @@ -34,6 +33,7 @@ def PyExec(self):
saveOp = self.getProperty('Save')
plotOp = self.getPropertyValue('Plot')

from IndirectForce import IbackStart, InxStart
if mode == 'ASCII':
IbackStart(instr,run,ana,refl,rejectZ,useM,verbOp,plotOp,saveOp)
if mode == 'INX':
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Algorithm to start Symmetrise
from mantid.api import PythonAlgorithm, AlgorithmFactory
from mantid.kernel import StringListValidator, StringMandatoryValidator
import IndirectSymm as Main

class Symmetrise(PythonAlgorithm):

Expand Down Expand Up @@ -32,6 +31,7 @@ def PyExec(self):
verbOp = self.getProperty('Verbose')
plotOp = self.getProperty('Plot')
saveOp = self.getProperty('Save')
import IndirectSymm as Main
Main.SymmStart(inType,sam,cut,verbOp,plotOp,saveOp)

AlgorithmFactory.subscribe(Symmetrise) # Register algorithm with Mantid

0 comments on commit e067bd2

Please sign in to comment.