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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user