Changeset 6688


Ignore:
Timestamp:
Apr 1, 2009, 3:01:39 PM (16 years ago)
Author:
ole
Message:

Changed transpose logic in preparation for numpy migration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/pmesh2domain.py

    r6145 r6688  
    172172    volumes = mesh_dict['triangles']
    173173    vertex_quantity_dict = {}
    174     point_atts = num.transpose(mesh_dict['vertex_attributes'])
     174    point_atts = mesh_dict['vertex_attributes']
    175175    point_titles  = mesh_dict['vertex_attribute_titles']
    176176    geo_reference  = mesh_dict['geo_reference']
    177     if point_atts != None:
     177    if point_atts is not None:
     178        point_atts = num.transpose(point_atts)   
    178179        for quantity, value_vector in map (None, point_titles, point_atts):
    179180            vertex_quantity_dict[quantity] = value_vector
Note: See TracChangeset for help on using the changeset viewer.