TimeBandsConsumer¶
- class spectacoular.consumer.TimeBandsConsumer¶
Bases:
TimeConsumer
TimeConsumer
derived 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 ignoresdown
androllover
. Instead, just the first sample of each block is taken from the input.ds
has a column for each input channel with one frequency band value in each row.bands
gives the bands andlfunc
can 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