TimeBandsConsumer¶
- class spectacoular.consumer.TimeBandsConsumer¶
Bases:
TimeConsumerTimeConsumerderived class for building an interface from Acoular’s generator pipelines to Bokeh’s ColumnDataSource which specialises in Plots over frequency bands (like octave spectrum)Works like
TimeConsumer, but ignoresdownandrollover. Instead, just the first sample of each block is taken from the input.dshas a column for each input channel with one frequency band value in each row.bandsgives the bands andlfunccan be used to convert to human-readable label strings.- lfunc = Callable( lambda bands: ["{:.0f}".format(f) for f in bands])¶
Function to convert bands into list of labels
- bands = Property( depends_on = ['source.digest'])¶
List of labels for bands
- numbands = Property( depends_on = ['source.digest'])¶
Number of bands
- update()¶
callback function for GUI event loop, updates data source