Add Delta-E column and make auto-scan.sh macOS-compatible

- averaged.csv now gets a dE00 (CIEDE2000) column measured against the
  sample marked with a leading '*' in samples.txt (falls back to the first)
- auto-scan.sh: drop bash-4-only mapfile/${var,,}, OS-aware Argyll package
  and python3 install, portable grep/sort, Linux-only udev check

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-14 14:50:25 +03:30
parent 3887505e40
commit 9f63e7c078
4 changed files with 152 additions and 13 deletions

View File

@@ -8,10 +8,13 @@ from pathlib import Path
def load_sample_names(path: Path) -> list[str]:
# A leading "*" marks the Delta-E reference sample; strip it to get the name.
names = []
for line in path.read_text(encoding="utf-8").splitlines():
line = line.strip()
if line and not line.startswith("#"):
if line.startswith("*"):
line = line[1:].strip()
names.append(line)
return names