ConcatCombiner

Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

class ConcatCombiner[source]

Bases: object

Merge sibling blocks by placing their columns side by side.

This is the workhorse of multi-modality composition: concat(raw("T1"), raw("T2")) yields the two-modality voxel field, and concat(mean("T1"), std("T1"), mean("T2")) the mixed supervoxel description. Column names pass through unchanged, so the children own the naming (single-column leaves name their column after the source label; multi-column leaves suffix it).

__init__() → None[source]
property spec: Spec

Return the algorithm specification used for provenance.

__call__(blocks: Sequence[DataFrame], *, context: Mapping[str, Any] | None = None) → DataFrame[source]

Concatenate the child blocks column-wise.

Parameters:
  • blocks – Child blocks in child order.

  • context – Unused by this combiner.

Returns:

The merged block with all child columns in child order.