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

cleanutils simplify step fails when structure hasn't been published #86

Open
fatipardo opened this issue Aug 17, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@fatipardo
Copy link
Owner

The code can be fixed like this:

     if '_citation.title' in mmcif_dict:
         L1 = mmcif_dict['_citation.title']
     else:
         L1 = "???"

     if '_citation.year' in mmcif_dict:
          L2 = mmcif_dict['_citation.year']
     else:
          L2 = "???"

     if '_citation.pdbx_database_id_DOI' in mmcif_dict:
         L3 = mmcif_dict['_citation.pdbx_database_id_DOI']
     else:
         L3 = "???"
@fatipardo
Copy link
Owner Author

I need to update cleanutils.py with the new version of the code

@gdkwxn gdkwxn added the bug Something isn't working label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants