Ignore:
Timestamp:
01/07/13 10:11:26 (12 years ago)
Author:
jschierm
Message:

NEW: Implement new python logical functions to get rid of ugly nesting.

File:
1 edited

Legend:

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

    r14151 r14211  
    4545from ElementConnectivity import *
    4646from contourenvelope import *
     47from PythonFuncs import *
    4748#}}}
    4849
     
    407408                                md2.diagnostic.icefront[:,2]=Pnode[md1.diagnostic.icefront[:,2].astype(int)-1]
    408409                                md2.diagnostic.icefront[:,3]=Pnode[md1.diagnostic.icefront[:,3].astype(int)-1]
    409                         md2.diagnostic.icefront=md2.diagnostic.icefront[numpy.nonzero(numpy.logical_and(numpy.logical_and(md2.diagnostic.icefront[:,0],md2.diagnostic.icefront[:,1]),md2.diagnostic.icefront[:,-1]))[0],:]
     410                        md2.diagnostic.icefront=md2.diagnostic.icefront[numpy.nonzero(logical_and_n(md2.diagnostic.icefront[:,0],md2.diagnostic.icefront[:,1],md2.diagnostic.icefront[:,-1]))[0],:]
    410411
    411412                #Results fields
Note: See TracChangeset for help on using the changeset viewer.