Package lib :: Module errors
[hide private]
[frames] | no frames]

Module errors

source code

Module containing all of the RelaxError objects.

Classes [hide private]
  BaseError
The base class for all RelaxErrors.
  BaseArgError
The base class for all the argument related RelaxErrors.
  RelaxError
  RelaxNoModuleInstallError
  RelaxFault
  RelaxImplementError
  RelaxProgError
  RelaxMissingBinaryError
  RelaxNonExecError
  RelaxNoInPathError
  RelaxProgFailError
  RelaxPdbError
  RelaxNoPdbError
  RelaxPdbLoadError
  RelaxMultiVectorError
  RelaxNoVectorsError
  RelaxNoPdbChainError
  RelaxNucleusError
  RelaxSpinTypeError
  RelaxInvalidError
  RelaxArgNotInListError
  RelaxLenError
  RelaxNoneError
  RelaxArgNotNoneError
  RelaxBoolError
  RelaxBinError
  RelaxFloatError
  RelaxNoneFloatError
  RelaxNumError
  RelaxNoneNumError
  RelaxFunctionError
  RelaxNoneFunctionError
  RelaxIntError
  RelaxNoneIntError
  RelaxStrError
  RelaxNoneStrError
  RelaxIntStrError
  RelaxNoneIntStrError
  RelaxStrFileError
  RelaxNoneStrFileError
  RelaxListError
  RelaxNoneListError
  RelaxListFloatError
  RelaxNoneListFloatError
  RelaxListFloatStrError
  RelaxListIntError
  RelaxNoneListIntError
  RelaxListNumError
  RelaxNoneListNumError
  RelaxListStrError
  RelaxNoneListStrError
  RelaxNoneFloatListError
  RelaxNoneFloatStrListError
  RelaxIntListIntError
  RelaxNoneIntListIntError
  RelaxNumStrListNumStrError
  RelaxNoneNumStrListNumStrError
  RelaxNoneStrListError
  RelaxStrListNumError
  RelaxNoneStrListNumError
  RelaxStrListStrError
  RelaxNoneStrListStrError
  RelaxValListValError
  RelaxNoneValListValError
  RelaxTupleError
  RelaxNoneTupleError
  RelaxTupleNumError
  RelaxNumTupleError
  RelaxNumTupleNumError
  RelaxNoneNumTupleNumError
  RelaxMatrixFloatError
  RelaxNoneMatrixFloatError
  RelaxNoSequenceError
  RelaxSequenceError
  RelaxDiffSeqError
  RelaxDiffMolNumError
  RelaxDiffResNumError
  RelaxDiffSpinNumError
  RelaxMultiMolIDError
  RelaxMultiResIDError
  RelaxMultiSpinIDError
  RelaxNoResError
  RelaxNoSpinError
  RelaxInvalidSeqError
  RelaxSpinsNotLoadedError
  RelaxNoInteratomError
  RelaxInteratomError
  RelaxInteratomInconsistentError
  RelaxNoDomainError
  RelaxNoFrqError
  RelaxNoPeakIntensityError
  RelaxNoSpectraError
  RelaxSpectraError
  RelaxNoRiError
  RelaxRiError
  RelaxNoJError
  RelaxJError
  RelaxNoAlignError
  RelaxAlignError
  RelaxNoRDCError
  RelaxRDCError
  RelaxNoPCSError
  RelaxPCSError
  RelaxMfError
  RelaxTensorError
  RelaxNoTensorError
  RelaxDirError
  RelaxFileError
  RelaxFileEmptyError
  RelaxFileOverwriteError
  RelaxInvalidDataError
  RelaxBundleError
  RelaxNoBundleError
  RelaxPipeError
  RelaxNoPipeError
  RelaxMolSelectDisallowError
  RelaxResSelectDisallowError
  RelaxSpinSelectDisallowError
  RelaxNoSpinSpecError
  RelaxFuncSetupError
  RelaxModelError
  RelaxNoModelError
  RelaxRegExpError
  RelaxParamSetError
  RelaxValueError
  RelaxNoValueError
  RelaxUnknownDataTypeError
  RelaxUnknownParamError
  RelaxUnknownParamCombError
  RelaxNoSimError
  RelaxStyleError
  RelaxInvalidColourError
  RelaxInfError
  RelaxNaNError
  RelaxFromXMLNotEmptyError
Functions [hide private]
 
save_state()
Save the program state, for debugging purposes.
source code
str
list_to_text(data)
Convert the given Python list to a text representation.
source code
 
all_errors(names)
Function for returning all the RelaxErrors to allow the AllRelaxError object to be created.
source code
Variables [hide private]
  bz2 = True
  SAVE_ERROR_STATE = False
  BIN = 'a binary number (0 or 1)'
  BOOL = 'a Boolean (True or False)'
  INT = 'an integer'
  FILE = 'a file object'
  FLOAT = 'a floating point number'
  FUNC = 'a function'
  LIST = 'a list'
  LIST_FLOAT = 'a list of floating point numbers'
  LIST_INT = 'a list of integers'
  LIST_NUM = 'a list of numbers'
  LIST_STR = 'a list of strings'
  LIST_VAL = 'a list of values'
  MATRIX_FLOAT = 'a matrix of floating point numbers'
  NONE = 'None'
  NUM = 'a number'
  TUPLE = 'a tuple'
  TUPLE_FLOAT = 'a tuple of floating point numbers'
  TUPLE_INT = 'a tuple of integers'
  TUPLE_NUM = 'a tuple of numbers'
  TUPLE_STR = 'a tuple of strings'
  STR = 'a string'
  VAL = 'a value'
  AllRelaxErrors = (<class 'lib.errors.RelaxAlignError'>, <class...
  __package__ = 'lib'

Imports: BZ2File, match, sys, time, pickle, ansi


Function Details [hide private]

list_to_text(data)

source code 

Convert the given Python list to a text representation.

Parameters:
  • data (list) - The list of Python objects.
Returns: str
The English text version of the list.

Variables Details [hide private]

AllRelaxErrors

Value:
(<class 'lib.errors.RelaxAlignError'>,
 <class 'lib.errors.RelaxArgNotInListError'>,
 <class 'lib.errors.RelaxArgNotNoneError'>,
 <class 'lib.errors.RelaxBinError'>,
 <class 'lib.errors.RelaxBoolError'>,
 <class 'lib.errors.RelaxBundleError'>,
 <class 'lib.errors.RelaxDiffMolNumError'>,
 <class 'lib.errors.RelaxDiffResNumError'>,
...