Command line interface

The commands take a study file unless noted otherwise. The sections below the table list the options of every command, as kipe <command> --help shows them.

Command

Purpose

kipe synthesis study.yaml

Generate synthetic measurement data

kipe synthesize study.yaml

Alias for kipe synthesis

kipe estimation study.yaml

Estimate parameters from measurement data

kipe estimate study.yaml

Alias for kipe estimation

kipe plot-estimation study.yaml

Plot the estimation history

kipe list-parameters study.yaml

List the solver’s parameters and nominal values

kipe list-fields study.yaml

List the solver’s state fields and their sizes

kipe sensitivity study.yaml

Analyze the identifiability: the Fisher information

kipe plot-sensitivity study.yaml

Plot the result of the sensitivity analysis

kipe schema

Print the study-file JSON schema

kipe completion bash

Print the completion script for a shell, e.g., bash

Generated from kipe’s argument parser.

kipe [-h] [--version]
     {list-parameters,list-fields,synthesis,synthesize,estimation,estimate,plot-estimation,sensitivity,plot-sensitivity,schema,completion}
     ...

kipe options

  • -h, --help - show this help message and exit

  • --version - show program’s version number and exit

kipe list-parameters

list the estimable parameters of the forward solver and their nominal values

kipe list-parameters [-h] study

kipe list-parameters positional arguments

  • study - study file (YAML)

kipe list-parameters options

  • -h, --help - show this help message and exit

kipe list-fields

list the state fields of the forward solver, which measurements can observe

kipe list-fields [-h] study

kipe list-fields positional arguments

  • study - study file (YAML)

kipe list-fields options

  • -h, --help - show this help message and exit

kipe synthesis (synthesize)

generate synthetic measurement data from a forward run

kipe synthesis [-h] [--log-level {debug,info,warning,error}] study

kipe synthesis positional arguments

  • study - study file (YAML)

kipe synthesis options

  • -h, --help - show this help message and exit

  • --log-level {debug,info,warning,error} - minimum level of the log messages; overrides output.log_level of the study file

kipe estimation (estimate)

estimate the parameters from the measurement data

kipe estimation [-h] [--realization R] [--resume] [--log-level {debug,info,warning,error}]
                study

kipe estimation positional arguments

  • study - study file (YAML)

kipe estimation options

  • -h, --help - show this help message and exit

  • --realization R - estimate from the data of noise realization R only (synthesis.realizations); default: all, one after the other

  • --resume - continue an interrupted estimation after its completed iterations; starts from the beginning if there are none, does nothing if it is complete

  • --log-level {debug,info,warning,error} - minimum level of the log messages; overrides output.log_level of the study file

kipe plot-estimation

plot the estimation history: the estimates with their 1σ range

kipe plot-estimation [-h] [--truth] [--realization R] [--save FILE] [--terminal] [--watch]
                     [--interval SECONDS] [--plots-per-row N] [--all | --no-all]
                     study [study ...]

kipe plot-estimation positional arguments

  • study - study file(s) (YAML); several are plotted into the same figure

kipe plot-estimation options

  • -h, --help - show this help message and exit

  • --truth - draw the nominal parameters of the first study’s forward solver as reference

  • --realization R - plot the estimation of noise realization R, for studies with several

  • --save FILE - save the figure, don’t show it

  • --terminal - draw the plot as text in the terminal

  • --watch - redraw in the terminal as the estimation runs, until Ctrl+C; implies --terminal

  • --interval SECONDS - time between redraws with --watch (default: 2.0)

  • --plots-per-row N - plots per row with --terminal or --watch, e.g., 3 for many parameters (default: 1)

  • --all, --no-all - with --terminal or --watch, draw all outer iterations (--all) or only the last one (--no-all); default: all with --terminal, the last one with --watch

kipe sensitivity

sensitivity analysis: the Fisher information of the measurements at the nominal parameters, from two forward runs per parameter

kipe sensitivity [-h] [--run I | --assemble] [--log-level {debug,info,warning,error}] study

kipe sensitivity positional arguments

  • study - study file (YAML)

kipe sensitivity options

  • -h, --help - show this help message and exit

  • --run I - compute forward run I only, e.g., as a task of a job array; default: all runs, then their assembly

  • --assemble - only combine the runs, once all are done

  • --log-level {debug,info,warning,error} - minimum level of the log messages; overrides output.log_level of the study file

kipe plot-sensitivity

plot the result of the sensitivity analysis: the singular values, the right singular vectors and the Cramér-Rao correlations

kipe plot-sensitivity [-h] [--save FILE] study

kipe plot-sensitivity positional arguments

  • study - study file (YAML)

kipe plot-sensitivity options

  • -h, --help - show this help message and exit

  • --save FILE - save the figure, don’t show it

kipe schema

print the JSON schema of the study file, e.g., for an editor

kipe schema [-h]

kipe schema options

  • -h, --help - show this help message and exit

kipe completion

print the completion script of kipe for a shell, to install once

kipe completion [-h] {bash,zsh,tcsh,fish,powershell}

kipe completion positional arguments

kipe completion options

  • -h, --help - show this help message and exit

Examples, to install the script for the current user:

  # bash, with the bash-completion package
  mkdir -p ~/.local/share/bash-completion/completions
  kipe completion bash > ~/.local/share/bash-completion/completions/kipe

  # zsh, with fpath=(~/.zfunc $fpath) in ~/.zshrc, before compinit
  mkdir -p ~/.zfunc
  kipe completion zsh > ~/.zfunc/_kipe

  # fish
  kipe completion fish > ~/.config/fish/completions/kipe.fish

The script is static, generated from kipe's parser: Tab does not start kipe.
It takes effect in new shells. After an update of kipe, generating it again
completes the new commands and options.