TimeSamplesPhantom¶
- class spectacoular.lprocess.TimeSamplesPhantom¶
 Bases:
MaskedTimeSamples,BaseSpectacoularTimeSamples derived class for propagating signal processing blocks with user-defined time delay.
The functionality of the class is to deliver existing blocks of data in a certain time interval. Can be used to simulate a measurement (but data is read from file).
- time_delay = Float( …¶
 Defines the delay with which the individual data blocks are propagated. Defaults to 1/sample_freq
- collectsamples = Bool(True, …¶
 Indicates if samples are collected, helper trait to break result loop
- result(num=128)¶
 Python generator that yields the output block-wise.
- Parameters:
 - numinteger, defaults to 128
 This parameter defines the size of the blocks to be yielded (i.e. the number of samples per block) .
- Returns:
 - Samples in blocks of shape (num, num_channels).
 The last block may be shorter than num.