Skip to content

The MockResampler interprets 0.0 as None  #831

@llucax

Description

@llucax

What happened?

The MockResampler has a check None if not sample.value else ... which will end up interpreting a 0.0 value as None. For example:

sample = Sample(self._next_ts, None if not value else Quantity(value))

What did you expect instead?

None should be handled with if not sample.value is None.

Affected version(s)

No response

Affected part(s)

Unit, integration and performance tests (part:tests)

Extra information

Related to:

Metadata

Metadata

Assignees

Labels

part:testsAffects the unit, integration and performance (benchmarks) teststype:bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions