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 (an object supported by the FeatureParser) – 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