fix: gate DTW comparisons on wafer type + recording category; surface load errors

This commit is contained in:
jack
2026-07-06 15:41:29 -07:00
parent 1989ba8e5a
commit 0014ccc184
5 changed files with 272 additions and 23 deletions
+7
View File
@@ -119,6 +119,11 @@ class FileBrowser(QObject):
return
for csv_path in sorted(self._current_directory.glob("*.csv")):
# Recorded-live CSVs are named "live_<serial>_<timestamp>.csv" by
# SessionController.startRecording (see WaferMapTab's Record button),
# distinct from the "<serial>-<timestamp>.csv" convention used by
# DeviceController.parseAndSaveData for read-memory dumps.
is_recording = csv_path.stem.lower().startswith("live_")
try:
metadata = self._load_metadata(csv_path)
wafer_type = metadata.get_wafer_type().upper() or (csv_path.stem[0].upper() if csv_path.stem else "")
@@ -146,6 +151,7 @@ class FileBrowser(QObject):
"masterType": master_state.get(str(csv_path), "") or metadata.master_type,
"fileName": str(csv_path),
"highlight": wafer_type in {"A", "B", "C"},
"isRecording": is_recording,
}
)
except Exception:
@@ -169,6 +175,7 @@ class FileBrowser(QObject):
"masterType": master_state.get(str(csv_path), ""),
"fileName": str(csv_path),
"highlight": False,
"isRecording": is_recording,
}
)