Skip to content

Conversation

@yoshikisd
Copy link
Collaborator

A bug was introduced in #63, where an error related to string processing occurs if Bragg2DPtycho is used, but surface_normal and scattering_mode are both None and no orientation is specified in the dataset. See #65

The changes made here guard the string processing/inspection of scattering_mode against cases where scattering_mode is not a string (i.e., NoneType).

Copy link
Collaborator

@allevitan allevitan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@allevitan allevitan merged commit 98d2acf into master Dec 19, 2025
9 checks passed
@allevitan allevitan deleted the bugfix/surface_normal_strip branch December 19, 2025 13:56
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.

[Bug] Error thrown in Bragg2DPtycho if surface_normal and scattering_mode are None and no orientation specified in the dataset

3 participants