- The user's layout: the station's root holds only what is the same for every run (images_diff/, images/, metrics/, weather/); each run's folder holds what depends on it: config.yaml, displacement/, camera/, targets.csv, patterns.json. - processing/new_run.sh <SERIAL> <run>: config.yaml of a new, empty run, the cloud's processing written in full (the patterns of sensors.json, the camera, optical's current commit); never over an existing one. - processing/run_config.sh <SERIAL> <run>: reads the run's config.yaml (patterns, camera, emulator.version, checked against $OPTICAL's commit and local changes) and writes its displacement/, camera/, targets.csv (from its patterns) and patterns.json (the patterns as given to the emulator). No configs/, no runs/<name>/ outside data_diff/. - pump_diff no longer writes targets.csv: it depends on the run. JUNGFRAU run01 (2026-09-01, 2026-10-12..16, 525 images, 18 s): 7875 rows as data/, the same rejections, corr within 0.034 px; a run created by new_run.sh and run as is gives run01 exactly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
763 B
Bash
Executable File
14 lines
763 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Runs data_diff/<SERIAL>/runs/<run>/config.yaml (processing/run_config.py), in a throwaway uv environment with what
|
|
# optical's emulator and camera correction need; optical's code from $OPTICAL (default ~/optical). No credentials.
|
|
# processing/run_config.sh <SERIAL> <run> [--from D] [--to E] [--jobs N]
|
|
# processing/run_config.sh <SERIAL> <run> --new (processing/new_run.sh): the run created, empty
|
|
# processing/run_config.sh --check
|
|
set -u
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
here=$(cd "$(dirname "$0")" && pwd)
|
|
exec uv run --no-project --quiet --python 3.12 \
|
|
--with numpy --with pandas --with pillow --with pyyaml --with scipy --with scikit-image \
|
|
--with opencv-python-headless \
|
|
python "$here/run_config.py" "$@"
|