Skip to content
New issue

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

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

Already on GitHub? # to your account

Handle non-energy scans that are saturated/underexposed #164

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

pbeaucage
Copy link
Collaborator

@delongchamp's saturation detection routine assumes the scan is an energy series, which breaks if you take a spiral/spatial scan. This adds a try/except to handle non-energy scans, not particularly gracefully but good-enough.

  • Added a try-except block to handle potential exceptions when accessing md["energy"][idx] and provide a fallback message indicating affected frames if an exception occurs. [1] [2]

@pbeaucage pbeaucage merged commit 3adbdc3 into main Dec 5, 2024
16 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant