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

Pandas / CCTBX compatbility #6

Open
stefsmeets opened this issue Aug 7, 2023 · 1 comment
Open

Pandas / CCTBX compatbility #6

stefsmeets opened this issue Aug 7, 2023 · 1 comment

Comments

@stefsmeets
Copy link
Owner

There seem to be some compatibility issues with the most recent versions of CCTBX / pandas.

  • cif2topas structure.cif bugs out with TypeError: unsupported format string passed to special_op_simlified_term.__format__
  • topasdiff structure.cif --diff fobs.hkl gives TypeError: Index(...) must be called with a collection of some kind, <cctbx_aray_family_flex_ext.miller_index object at ... was passed
@stefsmeets
Copy link
Owner Author

Work-around, from line 164 in original code:

if mult < z_order:
    try:
        print("   ' {:5s} {:5s} {:5s}".format(
            *sps.site_symmetry(atom.site).special_op_simplified().terms))
    except Exception:
        print()
else:
    print()

Looks like this is the only part affected.

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

No branches or pull requests

1 participant