Changeset 26662


Ignore:
Timestamp:
11/24/21 11:22:54 (3 years ago)
Author:
jdquinn
Message:

CHG: Missed a copy/paste

File:
1 edited

Legend:

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

    r26661 r26662  
    2929            fid.write('{}{}\n'.format('# Name:', filename))
    3030
    31         #Add density if it's not there FIXME what is this ever used for?
    32         #if 'density' not in contours:
    33         #    contours['density'] = 1
    34         density = 1
    35 
    3631        fid.write('{}\n'.format('## Icon:0'))
    37         fid.write('{}\n'.format('# Points Count Value')
     32        fid.write('{}\n'.format('# Points Count Value'))
    3833        if 'density' in contours:
    3934            if isinstance(contours['density'], int):
    40                 fid.write('{} {}\n'.format(np.size(x), density))
     35                fid.write('{} {}\n'.format(np.size(x), contours['density']))
    4136            else:
    4237                fid.write('{} {}\n'.format(np.size(x), 1.))
Note: See TracChangeset for help on using the changeset viewer.