##// END OF EJS Templates
new script "schain".
Miguel Valdez -
r830:6daeab89ec33
parent child
Show More
@@ -0,0 +1,49
1 #!/usr/bin/env python
2 '''
3 Created on Jul 7, 2014
4
5 @author: roj-idl71
6 '''
7 import os, sys
8
9 from schainpy import controller_api
10 from optparse import OptionParser
11
12 USAGE = """This script executes Signal Chain using parameters stored in [filename].
13
14 $ schain --file=[filename]
15 """
16
17 def main(filename):
18
19 controllerObj = controller_api.ControllerThread()
20 if not controllerObj.readXml(filename):
21 return
22
23 #Configure use of external plotter before start
24 plotterObj = controllerObj.useExternalPlotter()
25 ########################################
26
27 controllerObj.start()
28 plotterObj.start()
29
30 print "Finishing all processes ..."
31
32 controllerObj.join(5)
33
34 print "End of script"
35
36 if __name__ == '__main__':
37
38 parser = OptionParser(usage=USAGE)
39
40 parser.add_option("-f", "--file", type="string", default="",
41 help="File containing schain parameters")
42
43 (op, args) = parser.parse_args()
44
45 if not op.file:
46 parser.print_help()
47 sys.exit(0)
48
49 main(op.file) No newline at end of file
@@ -81,4 +81,5 properly but the next days did not.
81 2.2.5:
81 2.2.5:
82 -splitProfiles and combineProfiles modules were added to VoltageProc and Signal Chain GUI.
82 -splitProfiles and combineProfiles modules were added to VoltageProc and Signal Chain GUI.
83 -nProfiles of USRP data (hdf5) is the number of profiles thera are in one second.
83 -nProfiles of USRP data (hdf5) is the number of profiles thera are in one second.
84 -jroPlotter works directly with data objects instead of dictionaries No newline at end of file
84 -jroPlotter works directly with data objects instead of dictionaries
85 -script "schain" was added to Signal Chain installer No newline at end of file
@@ -1000,11 +1000,15 class Project():
1000 return 1
1000 return 1
1001
1001
1002 def readXml(self, filename = None):
1002 def readXml(self, filename = None):
1003
1003
1004 if not filename:
1005 print "filename is not defined"
1006 return 0
1007
1004 abs_file = os.path.abspath(filename)
1008 abs_file = os.path.abspath(filename)
1005
1009
1006 if not os.path.isfile(abs_file):
1010 if not os.path.isfile(abs_file):
1007 print "%s does not exist" %abs_file
1011 print "%s file does not exist" %abs_file
1008 return 0
1012 return 0
1009
1013
1010 self.projectElement = None
1014 self.projectElement = None
@@ -31,11 +31,10 setup(name="schainpy",
31 'schainpy.gui.figures': ['*.png','*.jpg'],
31 'schainpy.gui.figures': ['*.png','*.jpg'],
32 },
32 },
33 include_package_data=False,
33 include_package_data=False,
34 scripts =['schainpy/gui/schainGUI'],
34 scripts =['schainpy/gui/schainGUI',
35 'schainpy/scripts/schain'],
35 install_requires=["numpy >= 1.6.0",
36 install_requires=["numpy >= 1.6.0",
36 "scipy >= 0.9.0",
37 "scipy >= 0.9.0",
37 "h5py >= 2.0.1",
38 "matplotlib >= 1.0.0",
38 "matplotlib >= 1.0.0",
39 # "pyfits >= 2.0.0",
40 ],
39 ],
41 ) No newline at end of file
40 )
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now