Changeset 23716 for issm/trunk-jpl/src/m/io/loadmodel.py
- Timestamp:
- 02/12/19 06:10:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/io/loadmodel.py
r21235 r23716 1 1 from loadvars import loadvars 2 from whichdbimport whichdb2 from dbm.ndbm import whichdb 3 3 from netCDF4 import Dataset 4 4 … … 27 27 #recover model on file and name it md 28 28 struc=loadvars(path) 29 name=[key for key in struc.iterkeys()]29 name=[key for key in list(struc.keys())] 30 30 if len(name)>1: 31 31 raise IOError("loadmodel error message: file '%s' contains several variables. Only one model should be present." % path)
Note:
See TracChangeset
for help on using the changeset viewer.