AnalyzeTools.WidgetExample package

Submodules

AnalyzeTools.WidgetExample.CalculationExample module

class AnalyzeTools.WidgetExample.CalculationExample.CalculationExample(snare, buffer, calib, timeWeight, fqWeight)

Bases: AnalyzeTools.Calculation.Calculation

CalculationExample contains an example on how to use the AnalyzeWidgets for signal processing. It just plots the current selection with the correct axis.

variables self.values: To store the yAxis values. self.xAxis: To store the xAxis values.

calculate()

Calculates the Sound Pressure Level. Depending on calibration either in dBFS Peakvalue or in dbSPL values. For further information on the calibration implementation have a look at AnalyzeBuffer, ‘calib’ is only used to choose the right dBFS/dBSPL Scale.

AnalyzeTools.WidgetExample.PlotExample module

class AnalyzeTools.WidgetExample.PlotExample.PlotExample(calcObj, calib)

Bases: AnalyzeTools.Plot.Plot

Plot class which is a QWidget containing the figure plot.

getPlot()

Returns the plot obj with plotted matplot canvas (self.canvas).

Returns:plot object
Return type:Obj

AnalyzeTools.WidgetExample.WidgetExample module

class AnalyzeTools.WidgetExample.WidgetExample.WidgetExample(snare, channel, selNo, timeWeight, fqWeight, parm1=None, parm2=None, parm3=None)

Bases: AnalyzeTools.AnalyzeWidget.AnalyzeWidget

Example Widget

WidgetExample is a QWidget in which the figure, navigation menu and the labels are set. For calculation and plotting the figure it conains the calculate and plot method. According to whether calibration is set, the values are either in dB fullscale peakvalues or in dB soundpressure level values. note::At initialisation the calculation and plot methods are executed automatically.

calculate()

Initialize the calculation object and execute it.

plot()

Initialize the plot object, store the matplot figure and fill out the labels.

Module contents