Changeset 2444
- Timestamp:
- Feb 23, 2006, 3:05:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/geospatial_data/test_geospatial_data.py
r2309 r2444 175 175 assert allclose(V, [79.4, -7]) 176 176 177 177 def xtest_add(self): 178 points = [[1.0, 2.1], [3.0, 5.3]] 179 attributes = [2, 4] 180 G1 = Geospatial_data(points, attributes) 181 G2 = Geospatial_data(points, attributes) 182 G = G1 + G2 183 184 assert G.attributes.keys()[0] == 'attribute' 185 assert allclose(G.attributes.values()[0], [2, 4, 2, 4]) 186 assert allclose(G.get_data_points(), [[1.0, 2.1], [3.0, 5.3], 187 [1.0, 2.1], [3.0, 5.3]]) 178 188 179 189
Note: See TracChangeset
for help on using the changeset viewer.