sunpeek.core_methods.common.main.VirtualSensorStrategy#

class sunpeek.core_methods.common.main.VirtualSensorStrategy(component)#

Bases: CoreStrategy

Methods

__init__(component)

check_output(output)

Specific checks for the output of virtual sensor calculations.

execute()

Try to calculate strategy, sanitize check output dict and return if ok.

get_feedback(check_mode)

check_output(output)#

Specific checks for the output of virtual sensor calculations.

execute()#

Try to calculate strategy, sanitize check output dict and return if ok.

Returns:

  • elapsed_time (float, elapsed time in algorithm in seconds)

  • output (dict, strategy output, values are asserted to be unit-aware (pint-pandas) Series.)

Raises:

AlgorithmError