- Timestamp:
- Aug 7, 2007, 10:20:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_data_manager.py
r4631 r4659 600 600 601 601 def test_dem2pts_bounding_box_v2(self): 602 """Test conversion from dem in ascii format to native NetCDF xyaformat602 """Test conversion from dem in ascii format to native NetCDF format 603 603 """ 604 604 … … 714 714 715 715 def test_dem2pts_bounding_box_removeNullvalues_v2(self): 716 """Test conversion from dem in ascii format to native NetCDF xyaformat716 """Test conversion from dem in ascii format to native NetCDF format 717 717 """ 718 718 … … 844 844 845 845 def test_dem2pts_bounding_box_removeNullvalues_v3(self): 846 """Test conversion from dem in ascii format to native NetCDF xyaformat846 """Test conversion from dem in ascii format to native NetCDF format 847 847 Check missing values on clipping boundary 848 848 """ … … 4020 4020 4021 4021 def test_read_asc(self): 4022 """Test conversion from dem in ascii format to native NetCDF xyaformat4022 """Test conversion from dem in ascii format to native NetCDF format 4023 4023 """ 4024 4024 … … 5025 5025 ########## testing nbed class ################## 5026 5026 def test_exposure_csv_loading(self): 5027 file_name = tempfile.mktemp(". xya")5027 file_name = tempfile.mktemp(".csv") 5028 5028 file = open(file_name,"w") 5029 5029 file.write("LATITUDE, LONGITUDE ,sound , speed \n\ … … 5045 5045 5046 5046 5047 file_name = tempfile.mktemp(". xya")5047 file_name = tempfile.mktemp(".txt") 5048 5048 file = open(file_name,"w") 5049 5049 file.write("LATITUDE, LONGITUDE ,sound , speed \n\ … … 5068 5068 if sys.platform == 'win32': 5069 5069 file_name = tempfile.gettempdir() + \ 5070 "test_exposure_csv_loading_title_check_list. xya"5070 "test_exposure_csv_loading_title_check_list.csv" 5071 5071 else: 5072 file_name = tempfile.mktemp(". xya")5072 file_name = tempfile.mktemp(".csv") 5073 5073 file = open(file_name,"w") 5074 5074 file.write("LATITUDE, LONGITUDE ,sound , speed \n\ … … 5088 5088 5089 5089 def test_exposure_csv_cmp(self): 5090 file_name = tempfile.mktemp(". xya")5090 file_name = tempfile.mktemp(".csv") 5091 5091 file = open(file_name,"w") 5092 5092 file.write("LATITUDE, LONGITUDE ,sound , speed \n\ … … 5106 5106 'FAILED!') 5107 5107 5108 file_name = tempfile.mktemp(". xya")5108 file_name = tempfile.mktemp(".csv") 5109 5109 file = open(file_name,"w") 5110 5110 # Note, this has less spaces in the title, … … 5121 5121 'FAILED!') 5122 5122 5123 file_name = tempfile.mktemp(". xya")5123 file_name = tempfile.mktemp(".csv") 5124 5124 file = open(file_name,"w") 5125 5125 # Note, 40 changed to 44 . … … 5136 5136 'FAILED!') 5137 5137 5138 file_name = tempfile.mktemp(". xya")5138 file_name = tempfile.mktemp(".csv") 5139 5139 file = open(file_name,"w") 5140 5140 # Note, the first two columns are swapped. … … 5153 5153 5154 5154 5155 file_name = tempfile.mktemp(". xya")5155 file_name = tempfile.mktemp(".csv") 5156 5156 file = open(file_name,"w") 5157 5157 file.write("LATITUDE, LONGITUDE ,sound , speed \n\ … … 5162 5162 e1 = Exposure_csv(file_name) 5163 5163 5164 file_name2 = tempfile.mktemp(". xya")5164 file_name2 = tempfile.mktemp(".csv") 5165 5165 e1.save(file_name = file_name2) 5166 5166 e2 = Exposure_csv(file_name2) … … 5172 5172 5173 5173 def test_exposure_csv_get_location(self): 5174 file_name = tempfile.mktemp(". xya")5174 file_name = tempfile.mktemp(".csv") 5175 5175 file = open(file_name,"w") 5176 5176 file.write("LONGITUDE , LATITUDE, sound , speed \n\ … … 5194 5194 5195 5195 def test_exposure_csv_set_column_get_column(self): 5196 file_name = tempfile.mktemp(". xya")5196 file_name = tempfile.mktemp(".csv") 5197 5197 file = open(file_name,"w") 5198 5198 file.write("LONGITUDE , LATITUDE, sound , speed \n\ … … 5210 5210 ' Error!') 5211 5211 5212 file_name2 = tempfile.mktemp(". xya")5212 file_name2 = tempfile.mktemp(".csv") 5213 5213 e1.save(file_name = file_name2) 5214 5214 e2 = Exposure_csv(file_name2) … … 5219 5219 5220 5220 def test_exposure_csv_set_column_get_column_error_checking(self): 5221 file_name = tempfile.mktemp(". xya")5221 file_name = tempfile.mktemp(".csv") 5222 5222 file = open(file_name,"w") 5223 5223 file.write("LONGITUDE , LATITUDE, sound , speed \n\ … … 5259 5259 else: 5260 5260 self.failUnless(0 ==1, 'Error not thrown error!') 5261 file_name2 = tempfile.mktemp(". xya")5261 file_name2 = tempfile.mktemp(".csv") 5262 5262 e1.save(file_name = file_name2) 5263 5263 e2 = Exposure_csv(file_name2) … … 5278 5278 5279 5279 5280 file_name = tempfile.mktemp(". xya")5280 file_name = tempfile.mktemp(".csv") 5281 5281 file = open(file_name,"w") 5282 5282 file.write("x, y ,sound , speed \n\
Note: See TracChangeset
for help on using the changeset viewer.