Acoular 16.5 documentation

TimeCache

«  FiltOctave   ::   tprocess   ::   WriteWAV  »

TimeCache

class acoular.tprocess.TimeCache

Bases: acoular.tprocess.TimeInOut

Caches time signal in cache file.

result(num)

Python generator that yields the output from cache block-wise.

Parameters:

num : integer

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, numchannels).

The last block may be shorter than num. Echos the source output, but reads it from cache when available and prevents unnecassary recalculation.

«  FiltOctave   ::   tprocess   ::   WriteWAV  »