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 ifdrop=True).start+days— keep a window ofdaysstarting atstart.end+days— keep a window ofdaysending atend.test_date+days— keep a window ofdayscentered ontest_date.startonly — keep rows fromstartto the last timestamp.endonly — keep rows from the first timestamp toend.
The legacy
wrap_yearflag 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
nameis omitted).Attributes
args_reprRender the step's params for the summary.
custom_namedaysdropendexplanationHuman-readable description of the step's effect (read after run()).
nameparamstarttest_date