Ignore:
Timestamp:
Feb 1, 2006, 3:27:53 PM (19 years ago)
Author:
sexton
Message:

Investigating 0/0 and 1/0 in apply_expression_to_dictionary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/util.py

    r2074 r2314  
    509509                will be evaluated by expression.
    510510                Values in dictionary must support operators given in
    511                 expression e.g. by overloading               
     511                expression e.g. by overloading
     512
     513    due to a limitation with Numeric, this can not evaluate 0/0
     514    In general, the user can fix by adding 1e-30 to the numerator.
     515    SciPy core can handle this situation.
    512516    """
    513517
     
    532536        msg = 'Expression "%s" could not be evaluated: %s' %(expression, e)
    533537        raise NameError, msg
     538    except ValueError, e:
     539        msg = 'Expression "%s" could not be evaluated: %s' %(expression, e)
     540        raise ValueError, msg
    534541   
    535542
Note: See TracChangeset for help on using the changeset viewer.