parameters: (self)
docstring: Declare properties
docstring_summary: Declare properties
docstring_tokens: Declare properties
function: def PyInit(self):
          """
          Declare properties
          """
          allowed_units = CompositeValidator([WorkspaceUnitValidator("DeltaE"),
                                              WorkspaceUnitValidator("Momentum")],
                                             relation=CompositeRelation.OR)
          self.declareProperty(IEventWorkspaceProperty("InputWorkspace", "",
                                                       direction=Direction.Input,
                                                       validator=allowed_units),
                               doc="Input workspace. It has to be an event workspace"
                                   + " with units of energy transfer or momentum")
          self.declareProperty(name="XMin", defaultValue=Property.EMPTY_DBL,
                               direction=Direction.Input,
                               validator=FloatMandatoryValidator(),
                               doc="Minimum energy transfer or momentum")
          self.declareProperty(name="XMax", defaultValue=Property.EMPTY_DBL,
                               direction=Direction.Input,
                               validator=FloatMandatoryValidator(),
                               doc="Maximum energy transfer or momentum")
          self.declareProperty(WorkspaceProperty('OutputWorkspace', '',
                                                 direction=Direction.Output),
                               doc='Output workspace')
function_tokens: def PyInit ( self ) : allowed_units = CompositeValidator ( [ WorkspaceUnitValidator ( "DeltaE" ) , WorkspaceUnitValidator ( "Momentum" ) ] , relation = CompositeRelation . OR ) self . declareProperty ( IEventWorkspaceProperty ( "InputWorkspace" , "" , direction = Direction . Input , validator = allowed_units ) , doc = "Input workspace. It has to be an event workspace" + " with units of energy transfer or momentum" ) self . declareProperty ( name = "XMin" , defaultValue = Property . EMPTY_DBL , direction = Direction . Input , validator = FloatMandatoryValidator ( ) , doc = "Minimum energy transfer or momentum" ) self . declareProperty ( name = "XMax" , defaultValue = Property . EMPTY_DBL , direction = Direction . Input , validator = FloatMandatoryValidator ( ) , doc = "Maximum energy transfer or momentum" ) self . declareProperty ( WorkspaceProperty ( 'OutputWorkspace' , '' , direction = Direction . Output ) , doc = 'Output workspace' )