Baby Language Lab Scripts
A collection of data processing tools.
 All Classes Namespaces Files Functions Variables Pages
parsers.stats_exporter.StatsExporter Class Reference

This class writes statistics from the stats app to a csv file. More...

Inheritance diagram for parsers.stats_exporter.StatsExporter:

Public Member Functions

def __init__
 Constructor. More...
 
def export
 Performs the write to the CSV file. More...
 

Public Attributes

 config
 
 trs_filename
 
 export_filename
 

Detailed Description

This class writes statistics from the stats app to a csv file.

Definition at line 10 of file stats_exporter.py.

Constructor & Destructor Documentation

def parsers.stats_exporter.StatsExporter.__init__ (   self,
  config,
  trs_filename,
  export_filename 
)

Constructor.

Parameters
self
config(Configuration) The output configuration to write to the csv file.

Definition at line 14 of file stats_exporter.py.

Member Function Documentation

def parsers.stats_exporter.StatsExporter.export (   self,
  progress_update_fcn = None,
  progress_next_phase_fcn = None 
)

Performs the write to the CSV file.

Parameters
self
progress_update_fcn(function=None) function accepting a value in [0,1] to display as a progress bar - see utils.ProgressDialog. This value is used to indicate the level of completeness of the current phase
progress_next_phase_fcn(function=None)- moves the progress bar to the next phase, which causes new text to be displayed in the bar - see utils.ProgressDialog

Definition at line 26 of file stats_exporter.py.

Member Data Documentation

parsers.stats_exporter.StatsExporter.config

Definition at line 15 of file stats_exporter.py.

parsers.stats_exporter.StatsExporter.export_filename

Definition at line 17 of file stats_exporter.py.

parsers.stats_exporter.StatsExporter.trs_filename

Definition at line 16 of file stats_exporter.py.


The documentation for this class was generated from the following file: