captest.filters.Time

class captest.filters.Time(*, days, drop, end, start, test_date, custom_name, name)

Filter rows to a time window described by start/end/days/test_date.

Multiple parameter combinations are supported:

  • start + end — keep the window (or drop it if drop=True).

  • start + days — keep a window of days starting at start.

  • end + days — keep a window of days ending at end.

  • test_date + days — keep a window of days centered on test_date.

  • start only — keep rows from start to the last timestamp.

  • end only — keep rows from the first timestamp to end.

The legacy wrap_year flag is intentionally not supported here; the wrap-year functionality has moved to CapTest’s auto-wrap step at setup time so sim data is already contiguous before any filtering runs.

__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

days

drop

end

explanation

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

name

param

start

test_date