- Timestamp:
- Feb 25, 2009, 9:37:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/geospatial_data/test_geospatial_data.py
r6360 r6410 207 207 new_geo_ref = Geo_reference(56, x_p, y_p) 208 208 G.set_geo_reference(new_geo_ref) 209 msg = ('points_ab= %s, but\nG.get_data_points(absolute=True)=%s'209 msg = ('points_ab=\n%s\nbut G.get_data_points(absolute=True)=\n%s' 210 210 % (str(points_ab), str(G.get_data_points(absolute=True)))) 211 211 assert num.allclose(points_ab, G.get_data_points(absolute=True)), msg … … 342 342 343 343 assert num.allclose(P, num.concatenate( (P1,P2) )) 344 msg = 'P=%s' % str(P) 344 msg = ('P=\n%s\nshould be close to\n' 345 '[[2.0, 4.1], [4.0, 7.3],\n' 346 ' [5.1, 9.1], [6.1, 6.3]]' 347 % str(P)) 345 348 assert num.allclose(P, [[2.0, 4.1], [4.0, 7.3], 346 349 [5.1, 9.1], [6.1, 6.3]]), msg … … 369 372 370 373 P1 = G1.get_data_points(absolute=False) 371 msg = ('P1= %s, but\npoints1 - <...>=%s'374 msg = ('P1=\n%s\nbut points1 - <...>=\n%s' 372 375 % (str(P1), 373 376 str(points1 - [geo_ref1.get_xllcorner(), … … 439 442 assert num.allclose(G.get_geo_reference().get_yllcorner(), 0.0) 440 443 P = G.get_data_points(absolute=True) 441 msg = 'P= %s' % str(P)444 msg = 'P=\n%s' % str(P) 442 445 assert num.allclose(P, [[3.0, 6.1], [5.0, 9.3]]), msg 443 446 … … 1022 1025 os.remove(fileName) 1023 1026 1024 msg = ('results.get_data_points()= %s, but\nG.get_data_points(True)=%s'1027 msg = ('results.get_data_points()=\n%s\nbut G.get_data_points(True)=\n%s' 1025 1028 % (str(results.get_data_points()), str(G.get_data_points(True)))) 1026 1029 assert num.allclose(results.get_data_points(),
Note: See TracChangeset
for help on using the changeset viewer.