source: issm/trunk-jpl/src/py/classes/constants.py@ 11787

Last change on this file since 11787 was 11787, checked in by Eric.Larour, 13 years ago

Create python model and subclasses

File size: 605 bytes
RevLine 
[11787]1#module imports
2from fielddisplay import fielddisplay
3
4class constants:
5 #properties
6 def __init__(self):
7 # {{{ Properties
8 self.g = 0
9 self.yts = 0
10 self.referencetemperature = 0
11 #}}}
12 def __repr__(obj):
13 # {{{ Display
14 string=" constants parameters:"
15 string="%s\n\n%s"%(string,fielddisplay(obj,"g","gravitational acceleration"))
16 string="%s\n%s"%(string,fielddisplay(obj,"yts","number of seconds in a year"))
17 string="%s\n%s"%(string,fielddisplay(obj,"referencetemperature","reference temperature used in the enthalpy model"))
18
19
20 return string
21 #}}}
Note: See TracBrowser for help on using the repository browser.