CWorkflowTaskParam#

class ikomia.core.pycore.CWorkflowTaskParam#

Base class for task parameters. Every specific task parameter class must inherit this base class.It consists of two virtual methods that should be overriden to fill or get the structure holding parameters value. This structure is used internally by the system to save and load parameters values of task used in a workflow.

Import

from ikomia.core import CWorkflowTaskParam

Methods

__init__(arg1)

__init__( (object)self) -> None :

get_hash_value(self)

Get hash value from parameters values.

get_values(self)

Get task parameter names and values.

set_values(self, params)

Set task parameter names and values from the given Python dict.

Details

__init__((object)arg1) None#
__init__( (object)self) -> None :

Default constructor

get_hash_value((CWorkflowTaskParam)self) int :#

Get hash value from parameters values. The system uses this method to determine if task configuration has changed.

Returns:

int: hash value

get_hash_value( (CWorkflowTaskParam)self) -> int

get_values((CWorkflowTaskParam)self) object :#

Get task parameter names and values.

Returns:

dict: pairs of strings (parameter name, parameter value)

get_values( (CWorkflowTaskParam)self) -> object

set_values((CWorkflowTaskParam)self, (object)params) None :#

Set task parameter names and values from the given Python dict. Names and values must be strings.

Args:

params (dict): pairs of strings (parameter name, parameter value)

set_values( (CWorkflowTaskParam)self, (object)params) -> None