parameters: (self)
return_statement: return issues
docstring: Does basic validation for inputs.
docstring_summary: Does basic validation for inputs.
docstring_tokens: Does basic validation for inputs .
function: def validateInputs(self):
          """
          Does basic validation for inputs.
          """
  
          issues = dict()
  
          sample_ws = self.getProperty('Workspace').value
          workspace_index = self.getProperty('WorkspaceIndex').value
  
          if workspace_index > sample_ws.getNumberHistograms() - 1:
              issues['WorkspaceIndex'] = 'Workspace index is out of range'
  
          out_ws_tof = self.getPropertyValue('OutputWorkspaceTOF')
          out_ws_ysp = self.getPropertyValue('OutputWorkspaceYSpace')
  
          output_tof = (out_ws_tof != '')
          output_ysp = (out_ws_ysp != '')
  
          if not (output_tof or output_ysp):
              warning_message = 'Must output in either time of flight or ySpace'
              issues['OutputWorkspaceTOF'] = warning_message
              issues['OutputWorkspaceYSpace'] = warning_message
  
          return issues
function_tokens: def validateInputs ( self ) : issues = dict ( ) sample_ws = self . getProperty ( 'Workspace' ) . value workspace_index = self . getProperty ( 'WorkspaceIndex' ) . value if workspace_index > sample_ws . getNumberHistograms ( ) - 1 : issues [ 'WorkspaceIndex' ] = 'Workspace index is out of range' out_ws_tof = self . getPropertyValue ( 'OutputWorkspaceTOF' ) out_ws_ysp = self . getPropertyValue ( 'OutputWorkspaceYSpace' ) output_tof = ( out_ws_tof != '' ) output_ysp = ( out_ws_ysp != '' ) if not ( output_tof or output_ysp ) : warning_message = 'Must output in either time of flight or ySpace' issues [ 'OutputWorkspaceTOF' ] = warning_message issues [ 'OutputWorkspaceYSpace' ] = warning_message return issues