コード例 #1
0
 def PyInit(self):
     '''
     Declares algorithm's properties.
     '''
     self.declareProperty(MatrixWorkspaceProperty(
         name=self._PROP_INPUT_WS,
         defaultValue='',
         validator=HistogramValidator(),
         direction=Direction.Input),
                          doc='The workspace containing the input data')
     roundinghelper.declare_rounding_property(self)
     self.declareProperty(self._PROP_BIN_WIDTH,
                          defaultValue=0.0,
                          direction=Direction.Output,
                          doc='The averaged median bin width')
コード例 #2
0
 def PyInit(self):
     '''
     Declares algorithm's properties.
     '''
     self.declareProperty(
         MatrixWorkspaceProperty(name=self._PROP_INPUT_WS,
                                 defaultValue='',
                                 validator=HistogramValidator(),
                                 direction=Direction.Input),
         doc='The workspace containing the input data')
     roundinghelper.declare_rounding_property(self)
     self.declareProperty(self._PROP_BIN_WIDTH,
                          defaultValue=0.0,
                          direction=Direction.Output,
                          doc='The averaged median bin width')