pyobs_weather.weather.evaluators.Boolean

class Boolean(invert: bool = False)[source]

A Boolean evaluator is True, if its value is not equal 0.

Creates a new Boolean evaluator.

Parameters

invert – If True, the result of this evaluator is inverted.

__call__(sensor)[source]

Evaluates this evaluator.

Parameters

sensor – Sensor to evaluate.

Returns

Result of evaluation.

areas() list[source]

Returns list of areas for plot.