Prompt next sample code after each i1Pro reading

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-25 18:21:36 +03:30
parent d35ad9e944
commit bb6e6d9b64
4 changed files with 211 additions and 7 deletions

View File

@@ -20,9 +20,10 @@ average repeated scans, and relate results to ink mix formulas.
3. **Scans the samples** — lists the sample names from `samples.txt` in
measurement order, then starts `spotread`. You first calibrate on the
white tile, then take one reading per sample with the instrument
button, and press **Q** when all readings are done. If the number of
readings doesn't match `samples.txt`, the scan can be discarded to
`archive/` and repeated.
button. After each reading the terminal prints the **next sample
code** so you know which one to scan next; press **Q** when all
readings are done. If the number of readings doesn't match
`samples.txt`, the scan can be discarded to `archive/` and repeated.
4. **Saves a labelled CSV** — converts the spotread TSV log to
`scan_<mode>_<timestamp>.csv` with a `sample_id` column taken from
`samples.txt`.
@@ -120,6 +121,7 @@ These are used by `auto-scan.sh` but can also be run on their own:
|--------|---------|
| `measure.sh [mode]` | Just the spotread measurement session (TSV output) |
| `run-measurement.sh [mode]` | Measurement session + CSV conversion |
| `prompt-next-sample.py -s samples.txt -- spotread …` | Wrap spotread and print the next sample code after each reading |
| `tsv-to-csv.py <tsv> [-s samples.txt]` | Convert a spotread TSV to labelled CSV |
| `average-results.py <csv...> -o out.csv` | Average Lab across scan CSVs (writes CSV + HTML) |
| `build-formula-table.py` | Rebuild `formula.csv` from the averaged CSV |