Changeset 21259
- Timestamp:
- 10/12/16 06:37:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/io/loadvars.py
r21258 r21259 4 4 from netCDF4 import Dataset 5 5 from netCDF4 import chartostring 6 from re import findall 6 7 from os import path 7 8 from whichdb import whichdb … … 89 90 if classtype[mod][0]=='list': 90 91 keylist=[key for key in curclass.groups] 91 steplist=[int(key) for key in curclass.groups] 92 try: 93 steplist=[int(key) for key in curclass.groups] 94 except ValueError: 95 steplist=[int(findall(r'\d+',key)[0]) for key in keylist] 92 96 indexlist=[index*(len(curclass.groups)-1)/max(steplist) for index in steplist] 93 97 listtype=curclass.groups[keylist[0]].classtype
Note:
See TracChangeset
for help on using the changeset viewer.