Ignore:
Timestamp:
Feb 25, 2009, 9:37:22 AM (15 years ago)
Author:
rwilson
Message:

numpy changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/geospatial_data/test_geospatial_data.py

    r6360 r6410  
    207207        new_geo_ref = Geo_reference(56, x_p, y_p)
    208208        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'
    210210               % (str(points_ab), str(G.get_data_points(absolute=True))))
    211211        assert num.allclose(points_ab, G.get_data_points(absolute=True)), msg
     
    342342
    343343        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))
    345348        assert num.allclose(P, [[2.0, 4.1], [4.0, 7.3],
    346349                                [5.1, 9.1], [6.1, 6.3]]), msg
     
    369372
    370373        P1 = G1.get_data_points(absolute=False)
    371         msg = ('P1=%s, but\npoints1 - <...>=%s'
     374        msg = ('P1=\n%s\nbut points1 - <...>=\n%s'
    372375               % (str(P1),
    373376                  str(points1 - [geo_ref1.get_xllcorner(),
     
    439442        assert num.allclose(G.get_geo_reference().get_yllcorner(), 0.0)
    440443        P = G.get_data_points(absolute=True)
    441         msg = 'P=%s' % str(P)
     444        msg = 'P=\n%s' % str(P)
    442445        assert num.allclose(P, [[3.0, 6.1], [5.0, 9.3]]), msg
    443446
     
    10221025        os.remove(fileName)
    10231026
    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'
    10251028               % (str(results.get_data_points()), str(G.get_data_points(True))))
    10261029        assert num.allclose(results.get_data_points(),
Note: See TracChangeset for help on using the changeset viewer.