parameters: (self)
return_statement: return issues
docstring: Return a dictionary containing issues found in properties.
docstring_summary: Return a dictionary containing issues found in properties.
docstring_tokens: Return a dictionary containing issues found in properties .
function: def validateInputs(self):
          """Return a dictionary containing issues found in properties."""
          issues = dict()
          if self.getPropertyValue('Measurement') == 'ReflectedBeam':
              angle_option = self.getPropertyValue('AngleOption')
              if angle_option == 'UserAngle' and self.getProperty('BraggAngle').isDefault:
                  issues['BraggAngle'] = 'Bragg angle is mandatory if the angle option is UserAngle'
              elif angle_option == 'DetectorAngle':
                  if self.getProperty('DirectBeamDetectorAngle').isDefault:
                      issues['DirectBeamDetectorAngle'] = 'Direct beam detector angle is mandatory' \
                                                          ' if the angle option is DetectorAngle'
                  if self.getProperty('DirectBeamForegroundCentre').isDefault:
                      issues['DirectBeamForegroundCentre'] = 'Direct beam foreground centre is mandatory' \
                                                             ' if the angle option is DetectorAngle'
  
          if self.getProperty(Prop.BKG_METHOD).value != BkgMethod.OFF:
              if self.getProperty(Prop.LOW_BKG_WIDTH).value == 0 and self.getProperty(Prop.HIGH_BKG_WIDTH).value == 0:
                  issues[Prop.BKG_METHOD] = 'Cannot calculate flat background if both upper and lower background /' \
                                            ' widths are zero.'
          # Early input validation to prevent FindReflectometryLines to fail its validation
          if not self.getProperty(Prop.XMIN).isDefault and not self.getProperty(Prop.XMAX).isDefault:
              xmin = self.getProperty(Prop.XMIN).value
              xmax = self.getProperty(Prop.XMAX).value
              if xmax < xmin:
                  issues[Prop.XMIN] = 'Must be smaller than RangeUpper.'
              if xmin < 0.0:
                  issues[Prop.XMIN] = 'Must be larger or equal than 0.0.'
              if xmax > 255.0:
                  issues[Prop.XMAX] = 'Must be smaller or equal than 255.0.'
          if not self.getProperty(Prop.START_WS_INDEX).isDefault \
                  and not self.getProperty(Prop.END_WS_INDEX).isDefault:
              minIndex = self.getProperty(Prop.START_WS_INDEX).value
              maxIndex = self.getProperty(Prop.END_WS_INDEX).value
              if maxIndex < minIndex:
                  issues[Prop.START_WS_INDEX] = 'Must be smaller than EndWorkspaceIndex.'
          return issues
function_tokens: def validateInputs ( self ) : issues = dict ( ) if self . getPropertyValue ( 'Measurement' ) == 'ReflectedBeam' : angle_option = self . getPropertyValue ( 'AngleOption' ) if angle_option == 'UserAngle' and self . getProperty ( 'BraggAngle' ) . isDefault : issues [ 'BraggAngle' ] = 'Bragg angle is mandatory if the angle option is UserAngle' elif angle_option == 'DetectorAngle' : if self . getProperty ( 'DirectBeamDetectorAngle' ) . isDefault : issues [ 'DirectBeamDetectorAngle' ] = 'Direct beam detector angle is mandatory' ' if the angle option is DetectorAngle' if self . getProperty ( 'DirectBeamForegroundCentre' ) . isDefault : issues [ 'DirectBeamForegroundCentre' ] = 'Direct beam foreground centre is mandatory' ' if the angle option is DetectorAngle' if self . getProperty ( Prop . BKG_METHOD ) . value != BkgMethod . OFF : if self . getProperty ( Prop . LOW_BKG_WIDTH ) . value == 0 and self . getProperty ( Prop . HIGH_BKG_WIDTH ) . value == 0 : issues [ Prop . BKG_METHOD ] = 'Cannot calculate flat background if both upper and lower background /' ' widths are zero.' # Early input validation to prevent FindReflectometryLines to fail its validation if not self . getProperty ( Prop . XMIN ) . isDefault and not self . getProperty ( Prop . XMAX ) . isDefault : xmin = self . getProperty ( Prop . XMIN ) . value xmax = self . getProperty ( Prop . XMAX ) . value if xmax < xmin : issues [ Prop . XMIN ] = 'Must be smaller than RangeUpper.' if xmin < 0.0 : issues [ Prop . XMIN ] = 'Must be larger or equal than 0.0.' if xmax > 255.0 : issues [ Prop . XMAX ] = 'Must be smaller or equal than 255.0.' if not self . getProperty ( Prop . START_WS_INDEX ) . isDefault and not self . getProperty ( Prop . END_WS_INDEX ) . isDefault : minIndex = self . getProperty ( Prop . START_WS_INDEX ) . value maxIndex = self . getProperty ( Prop . END_WS_INDEX ) . value if maxIndex < minIndex : issues [ Prop . START_WS_INDEX ] = 'Must be smaller than EndWorkspaceIndex.' return issues