- Timestamp:
- May 28, 2007, 1:14:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/geospatial_data/test_geospatial_data.py
r4484 r4501 4 4 import unittest 5 5 import os 6 from Numeric import zeros, array, allclose, concatenate 6 from Numeric import zeros, array, allclose, concatenate,sort 7 7 from math import sqrt, pi 8 8 import tempfile … … 2232 2232 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]} 2233 2233 G = Geospatial_data(points, attributes) 2234 # print G.get_data_points()2235 # print G.get_attributes()2236 2234 2237 2235 factor = 0.21 … … 2240 2238 G1, G2 = G.split(factor) 2241 2239 2242 # print 'len(G): %s len(G1): %s len(G2): %s' %(len(G), len(G1), len(G2))2243 # print 'G: ', len(G),'G1: ', len(G1), 'G2: ', len(G2)2244 2245 2240 assert allclose(len(G), len(G1)+len(G2)) 2246 2241 assert allclose(round(len(G)*factor), len(G1)) 2247 2242 2248 # assert allclose(G == G1 + G2) must implentent __equal__2243 # assert allclose(G, G1+G2)# must implentent __equal__ or a sort 2249 2244 2250 2245
Note: See TracChangeset
for help on using the changeset viewer.