Ignore:
Timestamp:
10/21/16 08:49:08 (8 years ago)
Author:
bdef
Message:

CHG: major cosmetic clean up we now ask shape (N,) rather than (N,1) also uniformised numpy imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mesh/triangle.py

    r21174 r21303  
    11import os.path
    2 import numpy
     2import numpy as np
    33from mesh2d import mesh2d
    44from TriMesh import TriMesh
     
    5656
    5757        #Fill in rest of fields:
    58         md.mesh.numberofelements = numpy.size(md.mesh.elements,axis=0)
    59         md.mesh.numberofvertices = numpy.size(md.mesh.x)
    60         md.mesh.vertexonboundary = numpy.zeros(md.mesh.numberofvertices,bool)
     58        md.mesh.numberofelements = np.size(md.mesh.elements,axis=0)
     59        md.mesh.numberofvertices = np.size(md.mesh.x)
     60        md.mesh.vertexonboundary = np.zeros(md.mesh.numberofvertices,bool)
    6161        md.mesh.vertexonboundary[md.mesh.segments[:,0:2]-1] = True
    6262
Note: See TracChangeset for help on using the changeset viewer.