Python Interface to MAPL: Difference between revisions

Line 98: Line 98:


In this example, the '''GEOSgcs''' component is implemented in Python, with its children, components '''ANA''' and '''GCM''', also implemented in Python.
In this example, the '''GEOSgcs''' component is implemented in Python, with its children, components '''ANA''' and '''GCM''', also implemented in Python.
In this case we implement the standard '''Run()''' method, but inherit '''Initialize()''' and '''Finalize()''' from the base class '''MAPL.GridComp'''
 


  import MAPL
  import MAPL
Line 134: Line 134:
         MAPL.GridComp.__SetServices__(self)
         MAPL.GridComp.__SetServices__(self)


In this case we implement the standard '''Run()''' method, but inherit '''Initialize()''' and '''Finalize()''' from the base class '''MAPL.GridComp'''


     def Run(self):
     def Run(self):