Ignore:
Timestamp:
Mar 3, 2011, 6:04:03 PM (13 years ago)
Author:
wilsonr
Message:

Made changes described in ticket 359.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/fit_interpolate/interpolate.py

    r7854 r8124  
    800800            # This message is time consuming to form due to the conversion of
    801801            msg = 'Time must be a monotonuosly increasing sequence %s' % time
    802             raise Exception, msg
     802            raise Exception(msg)
    803803
    804804        # Check if quantities is a single array only
     
    859859            #no longer true. sts files have spatial = True but
    860860            #if self.spatial is False:
    861             #    raise 'Triangles and vertex_coordinates must be specified'
     861            #    raise Exception('Triangles and vertex_coordinates must be specified')
    862862            #
    863863            try:
     
    868868                      'or a list of points\n'
    869869                msg += 'Got: %s.' %(str(self.interpolation_points)[:60] + '...')
    870                 raise msg
     870                raise Exception(msg)
    871871
    872872            # Ensure 'mesh_boundary_polygon' is defined
     
    11031103                if x is not None and y is not None:
    11041104                    # Interpolate to x, y
    1105                     raise 'x,y interpolation not yet implemented'
     1105                    raise Exception('x,y interpolation not yet implemented')
    11061106                else:
    11071107                    # Use precomputed point
Note: See TracChangeset for help on using the changeset viewer.