sunpeek.core_methods.pc_method.wrapper.PCStrategy#

class sunpeek.core_methods.pc_method.wrapper.PCStrategy(pc)#

Bases: CoreStrategy

Methods

__init__(pc)

check_output(output)

Additional checks to be performed on output of a strategy.

execute()

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

get_feedback(check_mode)

get_pc_from_core_feedback(core_feedback)

check_output(output)#

Additional checks to be performed on output of a strategy.

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