Changeset 20913
- Timestamp:
- 07/14/16 10:40:57 (9 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/toolkits.py
r20910 r20913 52 52 #Create dynamic property if property does not exist yet 53 53 if not hasattr(self,analysis): 54 # exec("self.%s = None" % analysis)55 54 setattr(self,analysis,None) 56 55 -
issm/trunk-jpl/src/m/consistency/checkfield.py
r19900 r20913 41 41 else: 42 42 fieldname=options.getfieldvalue('fieldname') 43 exec("field=md. %s" % fieldname)43 exec("field=md.{}".format(fieldname)) 44 44 45 45 if isinstance(field,(bool,int,long,float)): -
issm/trunk-jpl/src/m/consistency/ismodelselfconsistent.py
r20380 r20913 84 84 85 85 #Check consistency of the object 86 exec("md. %s.checkconsistency(md,solution,analyses)" % field)86 exec("md.{}.checkconsistency(md,solution,analyses)".format(field)) 87 87 88 88 #error message if mode is not consistent
Note:
See TracChangeset
for help on using the changeset viewer.