Command Line Reference

The Samplepath Analysis Toolkit

1 Invocation

This tool contains command line utilities that perform sample path analysis on data sets representing flow processes provided in csv files and writes its output as png files to the local filesystem.

Invoke it on the command line with

flow <command> <csv-file> [options]

2 Commands

3 Analyze Command

What it does:

  1. Parse CLI arguments
  2. Create the output directory structure
  3. Copy input CSV under scenario
  4. Write CLI parameters into the scenario folder
  5. Run the sample-path analysis
  6. Generate the charts and write to the output directory.
  7. Print paths to generated charts

Example

flow analyze events.csv \
  --completed \
  --outlier-iqr 1.5 \
  --lambda-pctl 99 \
  --output-dir charts \
  --scenario weekly_report \
  --clean

Options

CSV Parsing


Data Filters

Drop rows from the CSV before running the analysis. Useful for isolating subprocesses in the main file. Use with --scenario to save subprocess results.


Outlier Trimming

Remove outliers to see whether the remaining process converges.


Lambda Fine Tuning

Sometimes it helps to drop early points in the λ(T) chart so the remainder displays on a more meaningful scale.


Convergence Thresholds


Output Configuration


Inputs and Outputs

Input Format

The input format is simple.

The csv requires three columns

Additionally you may pass any other columns. They are all ignored for now, except for a column called class which you can use to filter results by event/item type.

Results and charts are saved to the output directory as follows:

See the CLI Documentation for the full list of command line options.

Output Layout

For input events.csv, output is organized as:

<output-dir>/
└── events/
    └── <scenario>/                 # e.g., latest
        ├── input/                  # input snapshots
        ├── core/                   # core metrics & tables
        ├── convergence/            # limit estimates & diagnostics
        ├── convergence/panels/     # multi-panel figures
        ├── stability/panels/       # stability/variance panels
        ├── advanced/               # optional deep-dive charts
        └── misc/                   # ancillary artifacts

--

A complete reference to the charts produced can be found in The Chart Reference.