Changeset 17732


Ignore:
Timestamp:
04/14/14 20:54:53 (11 years ago)
Author:
cborstad
Message:

BUG: wrong handle for numpy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/model.py

    r17724 r17732  
    329329                #Edges
    330330                if m.strcmp(md.mesh.domaintype(),'2Dhorizontal'):
    331                         if numpy.ndim(md2.mesh.edges)>1 and numpy.size(md2.mesh.edges,axis=1)>1:    #do not use ~isnan because there are some npy.nans...
     331                        if numpy.ndim(md2.mesh.edges)>1 and numpy.size(md2.mesh.edges,axis=1)>1:    #do not use ~isnan because there are some numpy.nans...
    332332                                #renumber first two columns
    333333                                pos=numpy.nonzero(md2.mesh.edges[:,3]!=-1)[0]
     
    395395                                md2.stressbalance.spcvy[nodestoflag2]=md2.inversion.vy_obs[nodestoflag2]
    396396                        else:
    397                                 md2.stressbalance.spcvx[nodestoflag2]=npy.nan
    398                                 md2.stressbalance.spcvy[nodestoflag2]=npy.nan
     397                                md2.stressbalance.spcvx[nodestoflag2]=numpy.nan
     398                                md2.stressbalance.spcvy[nodestoflag2]=numpy.nan
    399399                                print "\n!! extract warning: spc values should be checked !!\n\n"
    400400                        #put 0 for vz
Note: See TracChangeset for help on using the changeset viewer.