seek_float¶
- baseband.tasks.seek_float(ih, offset, whence=0)[source] [edit on github]¶
Get a float sample position.
Similar to
ih.seek()
, but without rounding, and allowing offsets that are different for different sample streams.- Parameters:
- ihstream handle
Handle of a stream reader or task.
- offsetfloat,
Quantity
, orTime
Offset to move to. Can be an (float) number of samples, an offset in time units, or an absolute time. Should be broadcastable to the stream sample shape.
- whence{0, 1, 2, ‘start’, ‘current’, or ‘end’}, optional
Like regular seek, the offset is taken to be from the start if
whence=0
(default), from the current position if 1, and from the end if 2. One can alternativey use ‘start’, ‘current’, or ‘end’ for 0, 1, or 2, respectively. Ignored ifoffset
is a time.