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

FormatNXmxEigerFilewriter swap incorrect-looking image dimensions. #793

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dagewa
Copy link
Member

@dagewa dagewa commented Feb 27, 2025

The firmware version check introduced in #676 could fail for strange version numbers (for example, development versions) as noted in #790. Rather than relying on a check that could be fragile, this changeset simply swaps the values if they look wrong, based on what we know about Eiger detectors.

@biochem-fan
Copy link
Member

How about keeping the version-based check within a try block after your hard-coded match, just in case for exotic custom built EIGERs?

@dagewa
Copy link
Member Author

dagewa commented Feb 27, 2025

I was going for simplicity, but I don't mind to add a version check back in (though it should probably be ahead of the lookup, otherwise I risk two swaps). What does @graeme-winter think?

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

Successfully merging this pull request may close these issues.

3 participants