Changeset 23709 for issm/trunk-jpl/src/py3/classes/organizer.py
- Timestamp:
- 02/11/19 04:14:06 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/py3/classes/organizer.py
r23670 r23709 6 6 from savevars import savevars 7 7 from model import model 8 from dbm import whichdb8 from dbm.ndbm import whichdb 9 9 import MatlabFuncs as m 10 10 … … 86 86 if os.path.exists(path): 87 87 struc=loadvars(path) 88 name=name=[key for key in struc.keys()]88 name=name=[key for key in list(struc.keys())] 89 89 md=struc.name[0] 90 90 else: … … 115 115 raise IOError("Could find neither '%s' nor '%s'" % (path,path2)) 116 116 else: 117 print( "--> Branching '%s' from trunk '%s'" % (self.prefix,self.trunkprefix))117 print(("--> Branching '%s' from trunk '%s'" % (self.prefix,self.trunkprefix))) 118 118 md=loadmodel(path2) 119 119 return md … … 142 142 if 0 in self.requestedsteps: 143 143 if self._currentstep==1: 144 print( " prefix: %s" % self.prefix)145 print( " step #%i : %s" % (self.steps[self._currentstep-1]['id'],self.steps[self._currentstep-1]['string']))144 print((" prefix: %s" % self.prefix)) 145 print((" step #%i : %s" % (self.steps[self._currentstep-1]['id'],self.steps[self._currentstep-1]['string']))) 146 146 147 147 #Ok, now if _currentstep is a member of steps, return true 148 148 if self._currentstep in self.requestedsteps: 149 print( "\n step #%i : %s\n" % (self.steps[self._currentstep-1]['id'],self.steps[self._currentstep-1]['string']))149 print(("\n step #%i : %s\n" % (self.steps[self._currentstep-1]['id'],self.steps[self._currentstep-1]['string']))) 150 150 bool=True 151 151 … … 167 167 else: 168 168 name=os.path.join(self.repository,name) 169 print( "saving model as: '%s'" % name)169 print(("saving model as: '%s'" % name)) 170 170 171 171 #check that md is a model
Note:
See TracChangeset
for help on using the changeset viewer.