Changeset 26662
- Timestamp:
- 11/24/21 11:22:54 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/exp/expwrite.py
r26661 r26662 29 29 fid.write('{}{}\n'.format('# Name:', filename)) 30 30 31 #Add density if it's not there FIXME what is this ever used for?32 #if 'density' not in contours:33 # contours['density'] = 134 density = 135 36 31 fid.write('{}\n'.format('## Icon:0')) 37 fid.write('{}\n'.format('# Points Count Value') 32 fid.write('{}\n'.format('# Points Count Value')) 38 33 if 'density' in contours: 39 34 if isinstance(contours['density'], int): 40 fid.write('{} {}\n'.format(np.size(x), density))35 fid.write('{} {}\n'.format(np.size(x), contours['density'])) 41 36 else: 42 37 fid.write('{} {}\n'.format(np.size(x), 1.))
Note:
See TracChangeset
for help on using the changeset viewer.