Changeset 11794
- Timestamp:
- 03/25/12 11:12:41 (13 years ago)
- Location:
- issm/trunk-jpl/src/py
- Files:
-
- 9 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/py/classes/model.py
r11792 r11794 19 19 from balancethickness import balancethickness 20 20 from diagnostic import diagnostic 21 from groundingline import groundingline 22 from hydrology import hydrology 23 from prognostic import prognostic 24 from thermal import thermal 25 from steadystate import steadystate 26 from transient import transient 27 from autodiff import autodiff 28 from flaim import flaim 29 from inversion import inversion 21 30 #}}} 22 31 class model: … … 45 54 self.balancethickness = balancethickness() 46 55 self.diagnostic = diagnostic() 47 self.groundingline = [];48 self.hydrology = [];49 self.prognostic = [];50 self.thermal = [];51 self.steadystate = [];52 self.transient = [];56 self.groundingline = groundingline() 57 self.hydrology = hydrology() 58 self.prognostic = prognostic() 59 self.thermal = thermal() 60 self.steadystate = steadystate() 61 self.transient = transient() 53 62 54 self.autodiff = [];55 self.flaim = [];56 self.inversion = [];63 self.autodiff = autodiff() 64 self.flaim = flaim() 65 self.inversion = inversion() 57 66 self.qmu = []; 58 67 -
issm/trunk-jpl/src/py/model/display/fielddisplay.py
r11789 r11794 43 43 string=displayunit(offset,name,"false",comment) 44 44 45 #elif isstruct(field), 46 # if ~isempty(fields(field)) 47 # displayunit(offset,name,'(structure)',comment), 48 # struct_display(field,[offset ' ']), 49 # else 50 # displayunit(offset,name,'N/A',comment), 51 # end 52 45 elif isinstance(field,list): 46 if not field: 47 string=displayunit(offset,name,'N/A',comment), 48 else: 49 string=displayunit(offset,name,'(structure)',comment) 50 for i in range(len(field)): 51 string="%s\n%s"%(string,displayunit(offset + ' ',name,field[i],comment)) 53 52 #cell 54 53 #elif iscell(field): … … 86 85 string="%s%-23s: %-15s -- %s" % (offset,name,characterization,comment) 87 86 elif isinstance(comment,list): 87 print(comment) 88 88 string="%s%-23s: %-15s -- %s" % (offset,name,characterization,comment[0]) 89 for i in range( 2,len(comment)):89 for i in range(1,len(comment)): 90 90 string2="%s%-23s %-15s %s" %(offset,"","",comment[i]) 91 string="%s %s"%(string,string2)91 string="%s\n%s"%(string,string2) 92 92 else: 93 93 raise RuntimeError("fielddisplay error message: format for comment not supportet yet")
Note:
See TracChangeset
for help on using the changeset viewer.