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

GroupOps.epsilon_factor_without_centering([0, 0, 0]) is twice Sgtbx result for centric space groups #46

Open
kmdalton opened this issue Aug 5, 2020 · 0 comments

Comments

@kmdalton
Copy link

kmdalton commented Aug 5, 2020

I am unsure if this is a bug in Gemmi or a bug in Sgtbx. Either way it is probably academic.

The following script can be used to confirm that Gemmi sometimes calculates an epsilon factor without centering which is twice the value given by Sgtbx. Oddly, this only applies to reflection 0,0,0 and affects all centric space groups.

#!/usr/bin/env cctbx.python
from cctbx import sgtbx
import gemmi

h = [0, 0, 0]


for s in list(sgtbx.space_group_symbol_iterator()):
    xhm  = s.universal_hermann_mauguin()
    sg   = sgtbx.space_group(s)
    sgtbx_epsilon = sg.epsilon(h)
    gemmi_go = gemmi.SpaceGroup(xhm).operations()
    gemmi_epsilon = gemmi_go.epsilon_factor_without_centering(h)
    if gemmi_epsilon != sgtbx_epsilon:
        centric = gemmi_go.is_centric()
        print(f"{xhm:>12}\t{centric}\t{gemmi_epsilon}\t{sgtbx_epsilon}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant