Changeset 1423
- Timestamp:
- May 18, 2005, 5:17:10 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/combine_pts.py
r1379 r1423 125 125 verbose = False): 126 126 127 from load_mesh.loadASCII import import_points_file, extent, point_atts2array, export_points_file, add_point_dictionaries,take_points, mesh_file_to_mesh_dictionary127 from load_mesh.loadASCII import import_points_file, extent, point_atts2array, export_points_file, add_point_dictionaries,take_points, import_mesh_file 128 128 129 129 … … 135 135 136 136 # load mesh file 137 mesh = mesh_file_to_mesh_dictionary(mesh_file)137 mesh = import_mesh_file(mesh_file) 138 138 139 139 # get extent of mesh -
inundation/ga/storm_surge/pyvolution/least_squares.py
r1379 r1423 76 76 """ 77 77 78 from load_mesh.loadASCII import mesh_file_to_mesh_dictionary, \78 from load_mesh.loadASCII import import_mesh_file, \ 79 79 import_points_file, export_mesh_file, \ 80 80 concatinate_attributelist 81 81 82 mesh_dict = mesh_file_to_mesh_dictionary(mesh_file)82 mesh_dict = import_mesh_file(mesh_file) 83 83 vertex_coordinates = mesh_dict['vertices'] 84 84 triangles = mesh_dict['triangles'] -
inundation/ga/storm_surge/pyvolution/pmesh2domain.py
r1422 r1423 66 66 67 67 from Numeric import transpose 68 from load_mesh.loadASCII import mesh_file_to_mesh_dictionary68 from load_mesh.loadASCII import import_mesh_file 69 69 70 mesh_dict = mesh_file_to_mesh_dictionary(fileName)70 mesh_dict = import_mesh_file(fileName) 71 71 #print "mesh_dict",mesh_dict 72 72 vertex_coordinates = mesh_dict['vertices'] -
inundation/ga/storm_surge/pyvolution/test_least_squares.py
r1183 r1423 1055 1055 1056 1056 def test_fit_to_mesh_file(self): 1057 from load_mesh.loadASCII import mesh_file_to_mesh_dictionary, \1057 from load_mesh.loadASCII import import_mesh_file, \ 1058 1058 export_mesh_file 1059 1059 import tempfile … … 1089 1089 alpha = 0.0) 1090 1090 # load in the .tsh file we just wrote 1091 mesh_dic = mesh_file_to_mesh_dictionary(mesh_output_file)1091 mesh_dic = import_mesh_file(mesh_output_file) 1092 1092 #print "mesh_dic",mesh_dic 1093 1093 ans =[[0.0, 0.0], … … 1106 1106 1107 1107 def test_fit_to_mesh_file3(self): 1108 from load_mesh.loadASCII import mesh_file_to_mesh_dictionary, \1108 from load_mesh.loadASCII import import_mesh_file, \ 1109 1109 export_mesh_file 1110 1110 import tempfile … … 1142 1142 alpha = 0.0) 1143 1143 # load in the .tsh file we just wrote 1144 mesh_dic = mesh_file_to_mesh_dictionary(mesh_output_file)1144 mesh_dic = import_mesh_file(mesh_output_file) 1145 1145 #print "mesh_dic",mesh_dic 1146 1146 ans =[[0.0, 0.0], … … 1159 1159 1160 1160 def test_fit_to_mesh_fileII(self): 1161 from load_mesh.loadASCII import mesh_file_to_mesh_dictionary, \1161 from load_mesh.loadASCII import import_mesh_file, \ 1162 1162 export_mesh_file 1163 1163 import tempfile … … 1193 1193 alpha = 0.0) 1194 1194 # load in the .tsh file we just wrote 1195 mesh_dic = mesh_file_to_mesh_dictionary(mesh_output_file)1195 mesh_dic = import_mesh_file(mesh_output_file) 1196 1196 1197 1197 assert allclose(mesh_dic['vertex_attributes'], … … 1210 1210 1211 1211 def test_fit_to_msh_netcdf_fileII(self): 1212 from load_mesh.loadASCII import mesh_file_to_mesh_dictionary,export_mesh_file1212 from load_mesh.loadASCII import import_mesh_file,export_mesh_file 1213 1213 import tempfile 1214 1214 import os … … 1243 1243 alpha = 0.0) 1244 1244 # load in the .tsh file we just wrote 1245 mesh_dic = mesh_file_to_mesh_dictionary(mesh_output_file)1245 mesh_dic = import_mesh_file(mesh_output_file) 1246 1246 1247 1247 assert allclose(mesh_dic['vertex_attributes'],
Note: See TracChangeset
for help on using the changeset viewer.