SpectAcoular documentation

TimeSamplesPresenter

«  PointSpreadFunctionPresenter   ::   dprocess   ::   controller  »

TimeSamplesPresenter

class spectacoular.dprocess.TimeSamplesPresenter

Bases: BasePresenter

This class implements methods to select channel data for visualization.

The data of its ColumnDataSource fits bokehs MultiLine Glyph.

Example:

>>>    import spectacoular
>>>    ts = spectacoular.TimeSamples(file='/path/to/file.h5')
>>>    tv = spectacoular.TimeSamplesPresenter(source=ts)  
>>>    
>>>    tsPlot = figure(title="Channel Data") 
>>>    tsPlot.multi_line(xs='xs', ys='ys',source=tv.cdsource)
source = Trait(TimeSamples)

Data source; TimeSamples or derived object.

cdsource = Instance(ColumnDataSource, kw={'data':{

ColumnDataSource that holds data that can be consumed by plots and glyphs

channels = List(int)

Indices of channel to be considered for updating of ColumnDataSource

update(**optional_items)

Function that updates the keys and values of cdsource attribute.

Returns:
None.

«  PointSpreadFunctionPresenter   ::   dprocess   ::   controller  »