Changeset 19045 for issm/trunk-jpl/src/m/plot/writejsfile.py
- Timestamp:
- 01/28/15 23:25:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/writejsfile.py
r19044 r19045 1 import numpy 1 2 from writejsfield import writejsfield 2 3 def writejsfile(filename,model,keyname): … … 47 48 fid.write('result["shortlabel"]="{0}";\n'.format(results[i].shortlabel)) 48 49 fid.write('result["unit"]="{0}";\n'.format(results[i].unit)) 49 if len(results[i].data[2])>1:50 if type(results[i].data)==numpy.float64: 50 51 fid.write('result["time_range"]=[{0},{1}];\n'.format(results[i].time_range[0],results[i].time_range[1])) 51 52 fid.write('results["{0}"]=result;\n'.format(i))
Note:
See TracChangeset
for help on using the changeset viewer.