Ignore:
Timestamp:
Oct 14, 2005, 6:00:56 AM (19 years ago)
Author:
ole
Message:

Made utilities a Python package
Added numerical_tools (and test) containing ensure_numeric from the old util module.
Added test_polygon.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/utilities/polygon.py

    r1906 r1910  
    1 
    2 
    3 
    4 
    5 #####################################
    6 #POLYGON STUFF
    7 #
    8 #FIXME: All these should be put into new module polygon.py
    9 
    10 
     1#!/usr/bin/env python
     2"""Polygon manipulations
     3
     4"""
     5
     6from utilities.numerical_tools import ensure_numeric
    117
    128def point_on_line(x, y, x0, y0, x1, y1):
     
    284280    M = points.shape[0]  #Number of points
    285281
    286     from util_ext import separate_points_by_polygon
     282    from polygon_ext import separate_points_by_polygon
    287283
    288284    if verbose: print 'Allocating array for indices'
     
    351347
    352348    def __call__(self, x, y):
    353         from util import inside_polygon
    354349        from Numeric import ones, Float, concatenate, array, reshape, choose
    355350
Note: See TracChangeset for help on using the changeset viewer.