Better error message on ms filename match fail

pull/1833/head
Piero Toffanin 2025-02-23 21:19:38 +00:00
rodzic 6f7c533552
commit b47c6ef2f9
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -273,7 +273,10 @@ def compute_band_maps(multi_camera, primary_band):
# Quick check
if filename_without_band == p.filename:
raise Exception("Cannot match bands by filename on %s, make sure to name your files [filename]_band[.ext] uniformly." % p.filename)
if not filename_without_band in filename_map:
raise Exception("Cannot match bands by filename on %s, make sure to name your files [filename]_band[.ext] uniformly, check that your images have the appropriate CaptureUUID XMP tag and that no images are missing." % p.filename)
s2p[p.filename] = filename_map[filename_without_band]
if band['name'] != band_name: