Baby Language Lab Scripts
A collection of data processing tools.
 All Classes Namespaces Files Functions Variables Pages
confusion_app.py
Go to the documentation of this file.
1 ## @package app.custom_app
2 
3 from app.app import App
4 
5 import custom_scripts.reliability.rel_conf_mat.confusion as confusion
6 import custom_scripts.reliability.rel_conf_mat.matrix_adder as adder
7 import custom_scripts.reliability.rel_conf_mat.matrix_spacer as spacer
8 
9 ## Handles startup for the custom command line scripts (such as thos contained in the bll_app/custom_scripts/ folder).
10 # Using this class as an entry point for command line scripts gives them access to all of the bll_app classes.
11 # So for example, you can use the TRSParser class in your command line scripts to read TRS files.
13  def __init__(self):
14  super(ConfusionApp, self).__init__(
15  'confusion_app',
16  App.APP_TYPES.CMD_LINE #this will prevent the superclass from starting up PyGTK
17  )
18 
19  ## See superclass description. Calling this will start your command line script (if it contains a method called "run").
20  def start(self):
21  #print 'Running confusion.py'
22  confusion.run()
23 
24  print '\nRunning matrix_adder.py'
25  adder.run()
26 
27  print '\nRunning matrix_spacer.py'
28  spacer.run()