eolearn.core.eoworkflow_tasks

Module implementing tasks that have a special effect in EOWorkflow

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

Bases: EOTask

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

Parameters:

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

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

value (object | None) – 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: EOTask

Stores data as an output of EOWorkflow results.

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

  • features (FeaturesSpecification) – 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 features and possibly BBox and timestamps (see copy method of EOPatch).

Return type:

object