PaddedTaskBase¶
- class baseband_tasks.base.PaddedTaskBase(ih, pad_start=0, pad_end=0, *, samples_per_frame=None, **kwargs)[source] [edit on github]¶
Bases:
baseband_tasks.base.TaskBase
Base for tasks which need more points than they produce.
Like
TaskBase
, subclasses should define:task(self, data)
: return processed data from one frame.Where
data
will contain extra padding. Thetask
method has to ensure the right selection is returned, and can use the_pad_start
and_pad_end
attributes for this purpose.- Parameters
- ihstream handle
Handle of a stream reader or another task.
- pad_start, pad_endint
Padding to apply at the start and end. Default: 0.
- samples_per_frameint, optional
Number of output samples which should be produced in each frame. The number of input samples will be larger by the padding. If not given, the minimum power of 2 needed to get at least 75% efficiency.
- **kwargs
Possible further arguments; see
BaseTaskBase
.