Ignore:
Timestamp:
06/07/17 10:50:54 (8 years ago)
Author:
Eric.Larour
Message:

CHG: merged branch back to trunk-jpl 21754.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatGeoScience2016/src/m/plot/writejsfield.py

    r19056 r21759  
    1 import numpy
     1import numpy as np
    22def writejsfield(fid,name,variable,nods):
    33#WRITEJSFIELD - write variable to javascript file
     
    88        #write array:
    99        #if not isinstance(variable, list):
    10         if type(variable[0])==numpy.float64:
     10        if type(variable[0])==np.float64:
    1111                fid.write('<!-- {0}{{{{{{-->\n'.format(name))
    1212                fid.write('{0}=['.format(name))
Note: See TracChangeset for help on using the changeset viewer.