Ignore:
Timestamp:
Mar 4, 2011, 2:34:28 PM (14 years ago)
Author:
wilsonr
Message:

Changes to address ticket 360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/forcing.py

    r8124 r8125  
    1616from anuga.geometry.polygon import is_inside_polygon, inside_polygon, \
    1717                                    polygon_area
    18 from types import IntType, FloatType
    1918from anuga.geospatial_data.geospatial_data import ensure_geospatial
    2019
     
    408407               'or a function of time.\nI got %s.' % str(default_rate))
    409408        assert (default_rate is None or
    410                 type(default_rate) in [IntType, FloatType] or
     409                isinstance(default_rate, (int, float)) or
    411410                callable(default_rate)), msg
    412411
Note: See TracChangeset for help on using the changeset viewer.