captest.filters.BaseSummaryStep

class captest.filters.BaseSummaryStep(*, custom_name, name)

Common ancestor for steps that appear in the filtering summary.

Holds the shared lifecycle (run), the optional custom_name display parameter, and the args_repr rendering used by the summary table. Subclasses implement _execute, returning the pandas Index of rows to keep after the step.

Runtime state (pts_after, ix_after) is set by run as plain attributes and is never serialized. A step’s “before” index/count and points-removed are not stored — they are chain-derived on demand via CapData._ix_before/_pts_before.

__init__(**params)

Methods

__init__(**params)

from_config(config)

Build an instance from a to_config() dict.

run(capdata)

Execute the step, record runtime state, and append self to filters.

to_config()

Serialize this step to a config dict (every param, defaults included; the param-system name is omitted).

Attributes

args_repr

Render the step's params for the summary.

custom_name

explanation

Human-readable description of the step's effect (read after run()).

name

param