| Home | Trees | Indices | Help |
|
|---|
|
|
1 #-------------------------------------------------------------------
2 # This is a code to test the fit code by commandline
3 #
4 # Example:
5 # python testFit.py test_du53.py
6 #-------------------------------------------------------------------
7
8 import sys
9
10 sys.path.append('../applications/optim')
11 sys.path.append('../../../python')
12 from Controller import Controller
13
14
15 if __name__ == '__main__':
16
17 if len(sys.argv) < 2 :
18 print "Please input the xml file on command line "
19 else:
20 xmlStr= ''
21 fd = open( sys.argv[1], 'r' )
22 for s in fd:
23 xmlStr += s
24 fd.close()
25 strName = '<job>' + xmlStr + '</job>'
26 g = Controller( strName,20 )
27 print g.test()
28
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Mar 17 14:22:23 2009 | http://epydoc.sourceforge.net |