eolearn.core.eoworkflow_tasks

Module implementing tasks that have a special effect in EOWorkflow

class eolearn.core.eoworkflow_tasks.InputTask(value=None)[source]

Bases: eolearn.core.eotask.EOTask

Introduces data into an EOWorkflow, where the data can be specified at initialization or at execution.

Parameters

value (Optional[object]) – Default value that the task should provide as a result. Can be overridden in execution arguments

execute(*, value=None)[source]
Parameters

value (Optional[object]) – A value that the task should provide as its result. If not set uses the value from initialization

Returns

Directly returns value

Return type

object

class eolearn.core.eoworkflow_tasks.OutputTask(name=None, features=Ellipsis)[source]

Bases: eolearn.core.eotask.EOTask

Stores data as an output of EOWorkflow results.

Parameters
  • name (Optional[str]) – A name under which the data will be saved in WorkflowResults, auto-generated if None

  • features (Union[Tuple[Literal[<FeatureType.BBOX: 'bbox'>, <FeatureType.TIMESTAMP: 'timestamp'>], None], typing.Tuple[eolearn.core.constants.FeatureType, str], typing.Tuple[typing.Literal[<FeatureType.BBOX: 'bbox'>, <FeatureType.TIMESTAMP: 'timestamp'>], None, None], typing.Tuple[eolearn.core.constants.FeatureType, str, str], ellipsis, eolearn.core.constants.FeatureType, typing.Tuple[eolearn.core.constants.FeatureType, ellipsis], typing.Sequence[typing.Union[typing.Tuple[typing.Literal[<FeatureType.BBOX: 'bbox'>, <FeatureType.TIMESTAMP: 'timestamp'>], None], typing.Tuple[eolearn.core.constants.FeatureType, str], typing.Tuple[typing.Literal[<FeatureType.BBOX: 'bbox'>, <FeatureType.TIMESTAMP: 'timestamp'>], None, None], typing.Tuple[eolearn.core.constants.FeatureType, str, str], eolearn.core.constants.FeatureType, typing.Tuple[eolearn.core.constants.FeatureType, typing.Optional[ellipsis]]]], typing.Dict[eolearn.core.constants.FeatureType, typing.Union[None, ellipsis, typing.Iterable[typing.Union[str, typing.Tuple[str, str]]]]]]) – A collection of features to be kept if the data is an EOPatch

property name: str

Provides a name under which data will be saved in WorkflowResults.

Returns

A name

execute(data)[source]
Parameters

data (object) – input data

Returns

Same data, to be stored in results (for EOPatch returns shallow copy containing only features)

Return type

object