Changeset 6458
 Timestamp:
 Mar 5, 2009, 9:44:01 AM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/numpy/anuga/abstract_2d_finite_volumes/test_util.py
r6410 r6458 386 386 x = fid.variables['x'][:] 387 387 y = fid.variables['y'][:] 388 # we 'cast' to 64 bit floats to pass this test 389 # SWW file quantities are stored as 32 bits 390 x = num.array(x, num.float) 391 y = num.array(y, num.float) 392 388 393 stage = fid.variables['stage'][:] 389 394 xmomentum = fid.variables['xmomentum'][:] … … 419 424 Dy = num.take(num.reshape(y, (16,1)), [0,5,10,15], axis=0) 420 425 421 diag = num.concatenate( 426 diag = num.concatenate((Dx, Dy), axis=1) 422 427 d_midpoints = (diag[1:] + diag[:1])/2 423 428 … … 1981 1986 1982 1987 if __name__ == "__main__": 1983 suite = unittest.makeSuite(Test_Util, 'test')1988 suite = unittest.makeSuite(Test_Util, 'test') 1984 1989 # runner = unittest.TextTestRunner(verbosity=2) 1985 1990 runner = unittest.TextTestRunner(verbosity=1)
Note: See TracChangeset
for help on using the changeset viewer.