Changeset 17730


Ignore:
Timestamp:
04/14/14 17:46:16 (11 years ago)
Author:
cborstad
Message:

CHG: use OrderedDict and update rather than list of dicts for python expread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/exp/expread.py

    r17614 r17730  
    3030
    3131        #initialize number of profile
    32         contours=[]
     32        contours=OrderedDict()
    3333
    3434        #open file
     
    6767                #Get number of nodes and density
    6868                A=fid.readline().split()
    69                 contour['nods']   =float(A[0])
     69                contour['nods']=int(A[0])
    7070                contour['density']=float(A[1])
    7171
     
    9292                        contour['closed']=False
    9393
    94                 contours.append(contour)
     94                contours.update(contour)
    9595
    9696        #close file
Note: See TracChangeset for help on using the changeset viewer.