Skip to content

Commit

Permalink
Make LatticeConstant a mandatory input. Refs #6749.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Apr 9, 2013
1 parent 6ea8830 commit bf1e665
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*WIKI*"""
from mantid.api import PythonAlgorithm, registerAlgorithm, ITableWorkspaceProperty, WorkspaceFactory, FileProperty, FileAction
from mantid.kernel import Direction, StringListValidator
from mantid.kernel import Direction, StringListValidator, FloatBoundedValidator

import mantid.simpleapi as api

Expand Down Expand Up @@ -60,7 +60,7 @@ def PyInit(self):

self.declareProperty("Bank", 1, "Bank ID for output if there are more than one bank in .irf file.")

self.declareProperty("LatticeConstant", 10.0, "Lattice constant for cubic crystal.")
self.declareProperty("LatticeConstant", -0.0, validator=FloatBoundedValidator(lower=1.0E-9), doc="Lattice constant for cubic crystal.")

self.declareProperty(ITableWorkspaceProperty("InstrumentParameterWorkspace", "", Direction.Output),
"Name of Table Workspace Containing Peak Parameters From .irf File.")
Expand Down

0 comments on commit bf1e665

Please sign in to comment.