Changeset 1423


Ignore:
Timestamp:
May 18, 2005, 5:17:10 PM (20 years ago)
Author:
duncan
Message:

I've removed the function mesh_file_to_mesh_dictionary. Please use the function import_mesh_file instead.

Location:
inundation/ga/storm_surge/pyvolution
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/combine_pts.py

    r1379 r1423  
    125125                                     verbose = False):
    126126   
    127     from load_mesh.loadASCII import import_points_file, extent, point_atts2array, export_points_file, add_point_dictionaries,take_points, mesh_file_to_mesh_dictionary
     127    from load_mesh.loadASCII import import_points_file, extent, point_atts2array, export_points_file, add_point_dictionaries,take_points, import_mesh_file
    128128
    129129   
     
    135135   
    136136    # load  mesh file
    137     mesh = mesh_file_to_mesh_dictionary(mesh_file)
     137    mesh = import_mesh_file(mesh_file)
    138138
    139139    # get extent of mesh
  • inundation/ga/storm_surge/pyvolution/least_squares.py

    r1379 r1423  
    7676    """
    7777
    78     from load_mesh.loadASCII import mesh_file_to_mesh_dictionary, \
     78    from load_mesh.loadASCII import import_mesh_file, \
    7979                 import_points_file, export_mesh_file, \
    8080                 concatinate_attributelist
    8181
    82     mesh_dict = mesh_file_to_mesh_dictionary(mesh_file)
     82    mesh_dict = import_mesh_file(mesh_file)
    8383    vertex_coordinates = mesh_dict['vertices']
    8484    triangles = mesh_dict['triangles']
  • inundation/ga/storm_surge/pyvolution/pmesh2domain.py

    r1422 r1423  
    6666   
    6767    from Numeric import transpose
    68     from load_mesh.loadASCII import mesh_file_to_mesh_dictionary
     68    from load_mesh.loadASCII import import_mesh_file
    6969   
    70     mesh_dict = mesh_file_to_mesh_dictionary(fileName)
     70    mesh_dict = import_mesh_file(fileName)
    7171    #print "mesh_dict",mesh_dict
    7272    vertex_coordinates = mesh_dict['vertices']
  • inundation/ga/storm_surge/pyvolution/test_least_squares.py

    r1183 r1423  
    10551055
    10561056    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, \
    10581058             export_mesh_file
    10591059        import tempfile
     
    10891089                         alpha = 0.0)
    10901090        # 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)
    10921092        #print "mesh_dic",mesh_dic
    10931093        ans =[[0.0, 0.0],
     
    11061106
    11071107    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, \
    11091109             export_mesh_file
    11101110        import tempfile
     
    11421142                         alpha = 0.0)
    11431143        # 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)
    11451145        #print "mesh_dic",mesh_dic
    11461146        ans =[[0.0, 0.0],
     
    11591159
    11601160    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, \
    11621162             export_mesh_file
    11631163        import tempfile
     
    11931193                         alpha = 0.0)
    11941194        # 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)
    11961196
    11971197        assert allclose(mesh_dic['vertex_attributes'],
     
    12101210
    12111211    def test_fit_to_msh_netcdf_fileII(self):
    1212         from load_mesh.loadASCII import mesh_file_to_mesh_dictionary,export_mesh_file
     1212        from load_mesh.loadASCII import import_mesh_file,export_mesh_file
    12131213        import tempfile
    12141214        import os
     
    12431243                         alpha = 0.0)
    12441244        # 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)
    12461246
    12471247        assert allclose(mesh_dic['vertex_attributes'],
Note: See TracChangeset for help on using the changeset viewer.