Concatenate

class of dascore.workflow.builtin
inherits from: Task, DascoreBaseModel, pydantic.main.BaseModel
source

Concatenate(
    arguments: tuple[tuple[str, Any], …] = (),
    check_behavior: str | None[str, None] = warn,
)-> None

Putting patches end to end along a dimension.

Parameters

Parameter Description
arguments The dimensions concatenated along and how much of each, in the
order they were given: (("time", None),).
check_behavior What was done about patches which did not fit.
Note

The arguments are pairs rather than a mapping because here the dimension is the key and None is its documented value, meaning “all of it”. The canonical serializer drops a None mapping value – deliberately, so a parameter left at its default is the same call as one left out – which would make concatenating along time and along distance one fingerprint. A pair keeps both halves.

Methods

Name Description
fingerprint_at Return the fingerprint this task has at a stated version.
from_kwargs Return the task a call to concatenate_patches is.
new Create new instance with some attributed updated.
run Execute the task. Subclasses must implement this.
to_dict Return a document which describes this task.
update Return a new task with some parameters changed.