Changeset 8061


Ignore:
Timestamp:
Oct 30, 2010, 6:40:34 PM (8 years ago)
Author:
steve
Message:

argument for verbose on read_polygon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/geometry/polygon.py

    r8057 r8061  
    857857################################################################################
    858858
    859 def read_polygon(filename, delimiter=',', closed='True'):
     859def read_polygon(filename, delimiter=',', closed=True, verbose=False):
    860860    """ Read points assumed to form a (closed) polygon.
    861         Can also be used toread  in a polyline (closed = 'False')
     861        Can also be used toread  in a polyline (closed = False)
    862862
    863863        Also checks to make sure polygon (polyline)
     
    881881   
    882882    # check this is a valid polygon (polyline).
    883     if is_complex(polygon, closed, verbose=True):
     883    if is_complex(polygon, closed, verbose=verbose):
    884884        msg = 'ERROR: Self-intersecting polygon detected in file '
    885885        msg += filename +'. A complex polygon will not '
Note: See TracChangeset for help on using the changeset viewer.