- Timestamp:
- Nov 20, 2012, 3:31:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file_conversion/test_sww2dem.py
r8630 r8633 454 454 455 455 def test_sww2dem_larger_zero(self): 456 """Test that sww information can be converted correctly to asc/prj 457 format readable by e.g. Arcview. This example has rows with a 458 large number of zeros 456 """Test example has rows with a large number of zeros 459 457 460 458 ncols 2001 … … 630 628 631 629 632 def test_sww2dem_boundingbox(self):630 def xtest_sww2dem_boundingbox(self): 633 631 """Test that sww information can be converted correctly to asc/prj 634 632 format readable by e.g. ArcView. … … 1593 1591 1594 1592 #Check grid values 1593 #print '===' 1595 1594 for j in range(5): 1596 1595 L = lines[6+j].strip().split() 1597 1596 y = (4-j) * cellsize 1598 1597 for i in range(5): 1598 #print float(L[i]) 1599 1599 assert num.allclose(float(L[i]), -i*cellsize - y) 1600 1600 … … 1892 1892 if __name__ == "__main__": 1893 1893 #suite = unittest.makeSuite(Test_Shallow_Water, 'test_rainfall_forcing_with_evolve') 1894 suite = unittest.makeSuite(Test_Sww2Dem, 'test ')1895 runner = unittest.TextTestRunner(verbosity= 1)1894 suite = unittest.makeSuite(Test_Sww2Dem, 'test_') 1895 runner = unittest.TextTestRunner(verbosity=2) 1896 1896 runner.run(suite)
Note: See TracChangeset
for help on using the changeset viewer.