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

fixed bug in GrainData.load and added rotation_matrices attribute #589

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

donald-e-boyce
Copy link
Collaborator

This fixes a bug in the load() method; the keyword arguments needed a "**" in front.

It also adds a method to compute the rotation matrices from the exponential map parameters. This is very useful since the orientations are always used as rotation matrices. This was motivated by the recent discussions of near field processing.

@pep8speaks
Copy link

Hello @donald-e-boyce! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 14:22: E231 missing whitespace after ','

Copy link
Collaborator

@psavery psavery left a comment

Choose a reason for hiding this comment

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

Looks really great, Don. Thanks so much for adding a test, too!

@donald-e-boyce donald-e-boyce merged commit f1c3bc4 into HEXRD:master Dec 7, 2023
6 checks passed
@donald-e-boyce donald-e-boyce deleted the graindata_update branch December 19, 2023 00:03
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