sunpeek.core_methods.virtuals.main.calculate_virtuals#

sunpeek.core_methods.virtuals.main.calculate_virtuals(plant)#

Implements all the logic of the virtual sensor calculation. Typically called by data upload.

Raises:

CalculationError

Return type:

None

Notes

At the end of calculate_virtuals, there might be virtual sensors that have not been calculated, for a variety of possible reasons. Such an uncalculated virtual sensor, when queried for data (vsensor.data), it returns an all-NaN series with the correct physical unit (pint dtype) attached.