Package schrodinger :: Package utils :: Module sea :: Class _Evalor
[hide private]
[frames] | no frames]

Class _Evalor

object --+
         |
        _Evalor

This is the evaluator class for checking validity of parameters.

Instance Methods [hide private]
 
__init__(self, map, err_break='\n\n')
x.__init__(...) initializes x; see help(type(x)) for signature
 
__call__(self, arg)
 
is_ok(self)
Returns true if there is no error and unchecked maps.
 
record_error(self, mapname=None, err='')
Records the error.
 
unchecked_map(self)
Returns a string that tell which parameters have not been checked.
 
copy_from(self, ev)
Makes a copy from 'ev'.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  _err
  _err_break
  _map
  _unchecked_map

Inherited from object: __class__

Method Details [hide private]

__init__(self, map, err_break='\n\n')
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • map - 'map' contains all parameters to be checked.
Overrides: object.__init__

__call__(self, arg)
(Call operator)

 
Parameters:
  • arg - The validation criteria.

record_error(self, mapname=None, err='')

 

Records the error.

Parameters:
  • mapname - The name of the checked parameter.
  • err - The error message.

copy_from(self, ev)

 

Makes a copy from 'ev'.

Parameters:
  • ev - A '_Evalor' object.