Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve KeyError error message #1832

Closed
pierotofy opened this issue Feb 23, 2025 · 0 comments
Closed

Improve KeyError error message #1832

pierotofy opened this issue Feb 23, 2025 · 0 comments

Comments

@pierotofy
Copy link
Member

pierotofy commented Feb 23, 2025

Sometimes while processing multispectral datasets and an image is missing, this error will pop-out:

KeyError: 'IMG_250205.TIF'
s2p[p.filename] = filename_map[filename_without_band]
File "/code/opendm/multispectral.py", line 277, in compute_band_maps
s2p, p2s = multispectral.compute_band_maps(reconstruction.multi_camera, primary_band_name)
File "/code/stages/run_opensfm.py", line 165, in process

This is kind of confusing, and a better error message should be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant