This document is the reference for the
flow/samplepath command-line
interface. It defines:
For mathematical definitions and conceptual background, see Sample Path Theory.
For file-by-file chart interpretation, see Chart Reference.
Use either script name:
flow analyze <csv-file> [options]samplepath analyze <csv-file> [options]If you pass a CSV path directly, the CLI treats it as
analyze.
analyze runs the full pipeline:
--export-only).flow analyze events.csv \
--completed \
--outlier-iqr 1.5 \
--lambda-pctl 99 \
--output-dir charts \
--scenario weekly_report \
--cleanThe input CSV must contain:
idstart_tsend_tsOptional columns are preserved in
elements.csv. If present, class can
be used with --classes.
Column names can be remapped with:
--start-column--end-columnGiven events.csv, outputs are written
under:
<output-dir>/
└── events/
└── <scenario>/
├── input/
├── exports/
├── core/
│ └── panels/
├── convergence/
│ └── panels/
├── stability/
│ └── panels/
└── advanced/Top-level summary charts are also written at
<scenario>/.
When --sampling-frequency is not set:
event_indexed_metrics.csv.When --sampling-frequency is set:
<sampling_frequency>_indexed_metrics.csv.--anchor configures boundary anchors:
MON),JAN).For metric semantics and why this remains a sub-sampled cumulative view, see Sample Path Theory.
csv (positional): path to input CSV--delimiter: optional delimiter override--start-column (default
start_ts)--end-column (default
end_ts)--date-format: explicit datetime format
string--day-first: parse ambiguous dates as
day-first--completed: include only rows with
end_ts--incomplete: include only rows without
end_ts--classes: comma-separated class filter
list--completed and --incomplete are
mutually exclusive.
--outlier-hours: drop items above fixed
duration (hours)--outlier-pctl: drop items above duration
percentile--outlier-iqr: drop items above
Q3 + K*IQR--outlier-iqr-two-sided: also drop below
Q1 - K*IQR when using IQR rule--lambda-pctl: upper percentile clip for
Lambda(T) chart axis--lambda-lower-pctl: optional lower
percentile clip--lambda-warmup: warmup hours excluded from
percentile estimation--epsilon: relative error threshold used in
convergence diagnostics--horizon-days: initial days excluded from
convergence assessment--output-dir (default
charts)--scenario (default latest)--save-input (enabled by default)--clean: clear existing scenario outputs
before writing--with-event-marks--show-derivations--chart-format {png,svg}--chart-dpi (PNG only)--grid-lines /
--no-grid-lines--sampling-frequency--anchor--export-data /
--no-export-data--export-only--no-export-data and
--export-only cannot be combined.
When exports are enabled, two files are written under
<scenario>/exports/.
event_indexed_metrics.csv
| Column | Meaning |
|---|---|
timestamp |
event time |
element_id |
resolved element ID(s) at timestamp |
event_type |
A, D, A/D, or
- |
A(T) |
cumulative arrivals |
D(T) |
cumulative departures |
N(t) |
instantaneous WIP |
H(T) |
cumulative presence mass |
L(T) |
time-average presence |
Lambda(T) |
cumulative arrival rate |
Theta(T) |
cumulative departure rate |
w(T) |
residence time per arrival |
w'(T) |
residence time per departure |
W*(T) |
empirical mean sojourn of completed items |
<sampling_frequency>_indexed_metrics.csv
(for example week_indexed_metrics.csv)
| Column | Meaning |
|---|---|
<sampling_frequency> |
calendar boundary timestamp |
A(T) |
cumulative arrivals |
D(T) |
cumulative departures |
N(T) |
WIP at boundary |
H(T) |
cumulative presence mass |
L(T) |
time-average presence |
Lambda(T) |
cumulative arrival rate |
Theta(T) |
cumulative departure rate |
w(T) |
residence time per arrival |
w'(T) |
residence time per departure |
W*(T) |
empirical mean sojourn of completed items |
Filename: elements.csv
Core columns:
element_id (renamed from input
id)start_tsend_tssojourn_timeresidence_timeGenerated chart files are documented in Chart Reference.
flow analyze events.csv \
--sampling-frequency week \
--anchor MON \
--scenario weekly_mondayflow analyze events.csv --export-only --scenario exports_only