Ignore:
Timestamp:
Jun 15, 2010, 12:06:46 PM (15 years ago)
Author:
James Hudson
Message:

Refactorings to allow tests to pass.

File:
1 edited

Legend:

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

    r7810 r7841  
    11"""Least squares interpolation.
    22
    3    Implements a least-squares interpolation.
    4    Putting mesh data onto points.
     3   These functions and classes calculate a value at a particular point on
     4   the given mesh. It interpolates the values stored at the vertices of the
     5   mesh.
     6   
     7   For example, if you want to get the height of a terrain mesh at particular
     8   point, you pass the point to an Interpolate class. The point will intersect
     9   one of the triangles on the mesh, and the interpolated height will be an
     10   intermediate value between the three vertices of that triangle.
     11   This value is returned by the class.
    512
    613   Ole Nielsen, Stephen Roberts, Duncan Gray, Christopher Zoppou
     
    896903                    if verbose is True:
    897904                        import sys
    898                         if sys.platform == 'win32':
    899                             # FIXME (Ole): Why only Windoze?
    900                             from anuga.geometry.polygon import plot_polygons
    901                             title = ('Interpolation points fall '
    902                                      'outside specified mesh')
    903                             plot_polygons([mesh_boundary_polygon,
    904                                            interpolation_points,
    905                                            out_interp_pts],
    906                                           ['line', 'point', 'outside'],
    907                                           figname='points_boundary_out',
    908                                           label=title,
    909                                           verbose=verbose)
     905                        from anuga.geometry.polygon import plot_polygons
     906                        title = ('Interpolation points fall '
     907                                 'outside specified mesh')
     908                        plot_polygons([mesh_boundary_polygon,
     909                                       interpolation_points,
     910                                       out_interp_pts],
     911                                      ['line', 'point', 'outside'],
     912                                      figname='points_boundary_out',
     913                                      label=title)
    910914
    911915                    # Joaquim Luis suggested this as an Exception, so
Note: See TracChangeset for help on using the changeset viewer.