Skip to content

Command line

Everything is available from the sidenor-ladle command (also python -m sidenor_ladle). Global options go before the command.

sidenor-ladle [GLOBAL OPTIONS] COMMAND [OPTIONS]

Global options

Option Meaning
-c, --config PATH configuration file (.toml, .yaml, .json)
--env-file PATH dotenv file (default .env)
-s, --set block.key=value override one parameter (repeatable; value read as YAML)
--data-root, --thickness-dir, --output-root PATH input and output folders
--workers N worker processes of steps 01 and 04
-r, --report md,html,pdf,none report formats of this run (default report.formats)
--log-level LEVEL DEBUG, INFO, WARNING, ERROR
-q, --quiet do not print the step summaries
--version, -h, --help

Commands

Command Does
list steps and checks, their output folders and what they need
run [--from N] [--to N] [--only N ...] [--limit N] the pipeline (01-13 by default), then the reports
step NAME [--limit N] [--recompute-e] [--camera C] one step (NAME = number or name, see list)
check NAME [--quick] [--no-draw] one check: ladle-numbers, attribution, identity, data-quality, mask-trim
report [--step NAME ...] [-f FORMAT ...] rebuild a report from the saved results, nothing recomputed
config show [-f toml\|yaml\|json] effective configuration
config validate configuration and input folders
config init [--folder DIR] [-f FORMAT] write every default value and .env.example
dev synthetic [--out DIR] fake dataset with the plant formats
dev compare REF NEW [--legacy] compare two runs file by file
version

Former scripts

Version 3 Version 4
python scripts/run_all.py sidenor-ladle run
python scripts/run_all.py --from 5 sidenor-ladle run --from 5
python scripts/run_all.py --only 8 9 sidenor-ladle run --only 8 --only 9
python scripts/05_features.py sidenor-ladle step 5 (or step features)
python scripts/check_ladle_numbers.py sidenor-ladle check ladle-numbers
python scripts/check_image_attribution.py sidenor-ladle check attribution
python scripts/check_ladle_identity.py --quick sidenor-ladle check identity --quick
python scripts/check_data_quality.py sidenor-ladle check data-quality
python scripts/check_mask_trim.py sidenor-ladle check mask-trim
python tests/make_synthetic_data.py --out X sidenor-ladle dev synthetic --out X
python tests/check_equivalence.py --old A --new B sidenor-ladle dev compare A B

Order when the data change: steps 01-04, then sidenor-ladle check identity, then steps 03-13 again (step 03 reads the identity check if it exists):

sidenor-ladle run --to 4 && sidenor-ladle check identity && sidenor-ladle run --from 3

Exit codes

Code Meaning
0 success
1 wrong command or argument
2 invalid configuration
3 a needed input is missing (run the earlier step first)
4 a step failed (missing optional dependency, no data...)