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

use gemmi for DataSet.compute_dHKL #87

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

kmdalton
Copy link
Member

This PR changes the function used to calculate reflection resolutions in the DataSet.compute_dHKL method. Previously we had used the implementation from rs.utils.cell. From now on, we should use the one provided by gemmi for consistency because they differ slightly in their numerics.

@kmdalton kmdalton requested a review from JBGreisman August 27, 2021 16:58
I'm just changing the behavior of `rs.utils.generate_reciprocal_cell` to
 - be less wasteful
 - match the resolutions computed by `rs.DataSet.compute_dHKL`
Copy link
Member

@JBGreisman JBGreisman 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 to me. This will improve the consistency between DataSet.compute_dHKL(), and code that uses utils.generate_reciprocal_cell()

@JBGreisman JBGreisman merged commit 89641e7 into rs-station:main Aug 27, 2021
JBGreisman added a commit that referenced this pull request Sep 8, 2021
JBGreisman added a commit that referenced this pull request Sep 8, 2021
Fix reversion in dataset.py (#87)
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.

2 participants