parameters: (self)
docstring: Checks that list input variables are consistent
docstring_summary: Checks that list input variables are consistent
docstring_tokens: Checks that list input variables are consistent
function: def check_consistency(self):
          """ Checks that list input variables are consistent """
          num_ws = self.model.NumberOfSpectra
          errmsg = 'Number of input workspaces not consistent with model'
          if islistlike(self._input_workspace):
              if num_ws != len(self._input_workspace):
                  raise ValueError(errmsg)
              # If single element list, force use of _fit_single()
              if len(self._input_workspace) == 1:
                  self._input_workspace = self._input_workspace[0]
          elif num_ws != 1:
              raise ValueError(errmsg)
          if not isinstance(self.model, CrystalFieldMultiSite) and not self.model.isPhysicalPropertyOnly:
              tt = self.model.Temperature
              if any([val < 0 for val in (tt if islistlike(tt) else [tt])]):
                  raise RuntimeError('You must first define a temperature for the spectrum')
function_tokens: def check_consistency ( self ) : num_ws = self . model . NumberOfSpectra errmsg = 'Number of input workspaces not consistent with model' if islistlike ( self . _input_workspace ) : if num_ws != len ( self . _input_workspace ) : raise ValueError ( errmsg ) # If single element list, force use of _fit_single() if len ( self . _input_workspace ) == 1 : self . _input_workspace = self . _input_workspace [ 0 ] elif num_ws != 1 : raise ValueError ( errmsg ) if not isinstance ( self . model , CrystalFieldMultiSite ) and not self . model . isPhysicalPropertyOnly : tt = self . model . Temperature if any ( [ val < 0 for val in ( tt if islistlike ( tt ) else [ tt ] ) ] ) : raise RuntimeError ( 'You must first define a temperature for the spectrum' )