Package schrodinger :: Package application :: Package bioluminate :: Module propfilter :: Class NumericalDatabaseCriterion
[hide private]
[frames] | no frames]

Class NumericalDatabaseCriterion

             object --+    
                      |    
StringDatabaseCriterion --+
                          |
                         NumericalDatabaseCriterion

Instance Methods [hide private]
bool
checkForMatch(self, obj_val, operator, goal, isCaseSensitive=None)
Check to see if a value matches this criterion.

Inherited from StringDatabaseCriterion: __init__, __str__, matches

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

checkForMatch(self, obj_val, operator, goal, isCaseSensitive=None)

 

Check to see if a value matches this criterion. Returns True if:

   "obj_val operator goal"  ("20 >= 10" returns True)
Parameters:
  • obj_val (int or float) - The value being checked
  • operator (int or float) - An operator as defined in the __init__ method of the StringDatabaseCriterion class criteria paramater.
  • goal (int, float or list) - The value to compare against, or in the case of the SELECT operator, goal is a list of int or float
  • isCaseSensitive - ignored (added for compatibility with base class)
Returns: bool
True if "obj_val operator goal" is True, False if not
Raises:
  • ValueError - if operator is not recognized
Overrides: StringDatabaseCriterion.checkForMatch