Skip to content

Runtime Workflow

Study planning workflow: generate sweep/replicate folder structures from YAML.

This module implements CLI workflow orchestration for its command family, including argument parsing, request construction, execution dispatch, and result presentation handoff.

Usage context

  • Command routing: Resolve CLI aliases and normalized command names.
  • Task execution: Build request objects and invoke registered tasks.
  • Output handling: Forward results to table, plot, export, or report flows.

Common Runtime and Presentation Arguments

These are shared workflow-level CLI flags added before command-specific options, covering runtime context (engine/input/storage) and output presentation/export behavior.

Scientific choices

Flag Required Default Help Choices
--run No Execute study stages from an initialized study root folder. Example: --run studies/heating, which executes stages in that initialized study.
--analyze No Execute analysis pipelines declared in top-level study 'analysis'. Example: --analyze studies/heating, which runs the study's configured analysis pipelines.
--aggregate No Aggregate mode. First value is STUDY_ROOT; optional second value is aggregate title filter. Example: --aggregate studies/heating, which aggregates results for that study.
--run-geometry-generator No True Execute geometry_generator.cli_template during study initialization (default: true). Example: --run-geometry-generator, which executes configured geometry generation during initialization.
--strict-actions No False Fail immediately when geometry generation or artifact propagation actions fail. Example: --strict-actions, which stops initialization when a generation or transfer action fails.
--stage No Run only one stage name (e.g. MM, NPT, NVT). Example: --stage NVT, which runs only the NVT stage.
--replicate No Optional replicate selector (e.g. rep_01). Example: --replicate rep_01, which selects only the first named replicate.
--action No Manager action for --manage. Example: --action update-paths, which updates stored study paths. update-paths, rename-cases, remove
--target No Manager target(s) for --manage. Can be repeated. Example: --target cache, which targets cached artifacts for the selected manager action. paths, case-names, analysis, aggregate, cache, run-status, analysis-status, aggregate-status, plot-status
--value-column No For aggregate: explicit numeric column to extract from per-run analysis CSV exports. Example: --value-column temperature, which aggregates that numeric analysis column.

Input and file selection

Flag Required Default Help Choices
--init No Initialize a study from a YAML file and generate folders/manifests. Example: --init study.yaml, which creates study folders from that configuration.
--manage No Manage study metadata/artifacts (path update and removals). Example: --manage studies/heating, which targets that study for metadata or artifact management.
--root No . Root folder where the generated / tree will be created. Example: --root studies, which creates the study tree under that directory.

Outputs and plots

Flag Required Default Help Choices
--make-yaml No Write a starter study YAML template (default: study.yaml). Example: --make-yaml study.yaml, which writes a starter study configuration.
--gen-yaml No Alias for --make-yaml. Example: --gen-yaml study.yaml, which writes a starter study configuration.
--present No Presentation mode. First value is STUDY_ROOT; optional second value is aggregate title filter. Example: --present studies/heating, which renders presentations for that study.
--plot No Deprecated alias for --present. Example: --plot studies/heating, which renders study presentations through the legacy alias.
--analysis-title No Manager filter: analysis title. Example: --analysis-title temperature, which limits management to that analysis.
--aggregate-title No Manager filter: aggregate title. Example: --aggregate-title mean_temperature, which limits management to that aggregate.
--plot-style No default Plot appearance: default preserves existing styling; publication uses clear fonts and an accessible palette; publication-bold uses larger bold text and heavier lines. Example: --plot-style publication-bold, which improves readability when figures are reduced in a manuscript. default, publication, publication-bold
--color-style No default Color treatment: default preserves existing colors; light-fill uses lighter bar and marker interiors with the original outlines and lines. Example: --color-style light-fill, which adds contrast between fills and borders. default, light-fill
--detail-format No Optional detail format (default: Parquet; legacy: CSV). Example: --detail-format csv, which writes requested detail tables as CSV. parquet, csv

Execution

Flag Required Default Help Choices
--parallel-workers No 1 Number of replicate pipelines to run in parallel for --run (default: 1). Example: --parallel-workers 4, which runs up to four replicate pipelines concurrently.
--rerun-failed No For --run, rerun only replicates with fail>0 or wait>0 in run_status.csv; cleans stage artifacts before rerun. Example: --rerun-failed, which reruns failed or waiting replicates after cleaning stage artifacts.
--dry-run No Show what --manage would change without writing/removing. Example: --dry-run, which previews management changes without writing or removing artifacts.
--execution No auto Execution backend; unsupported backends fall back to serial with a logged reason. Example: --execution serial, which processes work sequentially. auto, serial, threads, processes
--workers No 0 Frame workers: auto or N (default: auto). Example: --workers 4, which requests four frame workers.
--chunk-size No 0 Maximum in-flight frames: auto or N. Example: --chunk-size 8, which limits concurrent frame processing to eight frames.

Storage and cache

Flag Required Default Help Choices
--force No Allow overwriting existing template file or reusing non-empty study directory. Example: --force, which allows replacement of existing generated output.
--artifact-transfer No How consumed artifacts are propagated into downstream stage folders. Example: --artifact-transfer copy, which copies consumed artifacts into downstream stages.
--case No Optional case selector (case_id, combo slug, or shorthand like mg_05__temp_300). Example: --case mg_05__temp_300, which selects that study case.
--analysis No Analysis title filter for --analyze. For legacy aggregate mode only, this can be a variable/title name. Example: --analysis temperature, which selects the analysis titled temperature.
--older-than No For cache removal: only remove entries older than N days. Example: --older-than 30, which limits cache removal to entries older than 30 days.
--profile No False Record deterministic function calls and timings for all Python threads (requires --diagnostics and reaxkit[profiling]).
--profile-clock No wall Profiler timer: elapsed wall time (default) or thread CPU time. Requires --profile to record. wall, cpu
--diagnostics, --no-diagnostics No False Enable a per-command report, console log, resource samples, and periodic Python stacks under logs/diagnostics (disabled by default).
--diagnostic-interval-seconds No 60.0 Python stack sampling interval (default: 60 seconds). Example: --diagnostic-interval-seconds 30.
--checkpoint, --no-checkpoint No Enable durable result batches for audited commands. Example: --no-checkpoint, disables recovery storage.
--resume No Resume a compatible result checkpoint; repeat the original scientific options. Example: --resume ./checkpoint, skips committed calculations.
--checkpoint-buffer-mb No 32 Result buffer in MiB, plus one oversized frame. Example: --checkpoint-buffer-mb 32, bounds pending result payloads to approximately 32 MiB.
--checkpoint-interval-seconds No 30 Flush at the next completed frame after this interval. Example: --checkpoint-interval-seconds 30, commits roughly every 30 seconds.
--output-profile No standard Artifact profile (default: standard). Example: --output-profile full, which includes declared optional detail artifacts. standard, minimal, full, legacy