Skip to content

Inconsistent gap treatment in ring buffer #646

@cwasicki

Description

@cwasicki

What happened?

If there is no data in the ring buffer (e.g. on start up) or no valid data (e.g. only None values), there is inconsistent behavior for gaps and __len__, which relies on gaps.

What did you expect instead?

Example on startup (expected 1 gap over the full window):

assert len(buffer.gaps) == 0

Example for no valid data (expected length of zero):

assert len(buffer) == 4 # bug: should be 0 (whole range gap)

Affected version(s)

v0.x.x

Affected part(s)

Data pipeline (part:data-pipeline)

Extra information

No response

Metadata

Metadata

Labels

part:data-pipelineAffects the data pipelinepriority:lowThis should be addressed only if there is nothing else on the tabletype:bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions