captest.filters.BooleanFlag

class captest.filters.BooleanFlag(*, column, invert, custom_name, name)

Remove intervals where a boolean/flag column is truthy.

column values are coerced with astype(bool) so 0/1, real booleans, and NaN (which is truthy) are handled uniformly. By default rows where the column is truthy are removed; set invert=True to instead remove rows where the column is falsy (keeping only the truthy rows).

__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.

column

custom_name

explanation

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

invert

name

param