Use samples template and auto-discover material names

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-13 14:26:45 +03:30
parent d3f6f53955
commit 3887505e40
5 changed files with 63 additions and 38 deletions

View File

@@ -59,20 +59,26 @@ sudo ./setup-udev.sh
## Sample list
`samples.txt` defines the sample names, one per line, in measurement
order. Lines starting with `#` are ignored. Mix samples use the pattern
`INK_A+INK_B[w1 to w2 mix]`, e.g.:
order. This file is **not tracked in git** (it holds your specific
material codes); copy the template to create your own:
```bash
cp samples.example.txt samples.txt
```
Lines starting with `#` are ignored. Material names can be any codes.
Mix samples use the pattern `NAME_A+NAME_B[w1 to w2 mix]`, e.g.:
```text
ICJ/107
ICJ/108
ICJ/435
ICJ/407
ICJ/107+ICJ/407[75 to 15 mix]
ICJ/107+ICJ/435[30 to 80 mix]
INK_A
INK_B
INK_A+INK_B[75 to 15 mix]
INK_A+INK_C[30 to 80 mix]
```
The weights are converted to percentages in the formula table
(e.g. `30 to 80` → 27% / 73%).
(e.g. `30 to 80` → 27% / 73%), which adds one column per material and
discovers the material names automatically from your sample list.
## Output files