[Bio] / KahApp / KahFwkApp.py Repository:
ViewVC logotype

View of /KahApp/KahFwkApp.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Tue Jan 17 17:12:47 2006 UTC (13 years, 10 months ago) by efrank
Branch: MAIN
CVS Tags: lwc, HEAD
persistence for dynamics stuff
bunch of flux modelinig stuff including flux model building in modeleditor

#!/usr/bin/env python
#-----------------------------------------------------------------------------
# Name:        KahFwkApp.py
#
# Purpose:     A program that configures a workflow via a config file and
#              executes it via the framework
#
# History:
#              17Dec05  efrank  split out of KahFwk
#
# Bugs:        
#
# RCS-ID:      $Id: KahFwkApp.py,v 1.1 2006/01/17 17:12:47 efrank Exp $
# Copyright:   (c) 2005
# Licence:     See COPYING.TXT
#-----------------------------------------------------------------------------

import sys
from KahApp.KahFwk  import KahFwk

#-----------------------------------------------------------------------------
def main():
#-----------------------------------------------------------------------------
    
    print "KahFwk main"

    ##
    # Mess with command line. getops someday maybe
    ##

    cfgFile = "KahFwk.cfg"
    l = sys.argv[:]
    l.reverse()
    while ( l ):
        arg=l.pop()
        if (arg == "-f"): cfgFile = l.pop()
        
    print "Configuring from ", cfgFile


    f = KahFwk(cfgFile, [], None )
    f.getModulesByCfg()
    f.doDefaultDataFactories()
    f.loadModel()
    f.run()


#-----------------------------------------------------------------------------
if __name__ == "__main__":
    main()


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3