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

findMissingAtoms raises AttributeError if findMissingResidues has not been called first #279

Open
nielskm opened this issue Oct 4, 2023 · 1 comment

Comments

@nielskm
Copy link

nielskm commented Oct 4, 2023

The following code raises AttributeError: 'PDBFixer' object has no attribute 'missingResidues':

from pdbfixer import PDBFixer
fixer = PDBFixer("6dyo.pdb")
fixer.findMissingAtoms()

Using the PDB from https://www.rcsb.org/structure/6DYO

@peastman
Copy link
Member

peastman commented Oct 4, 2023

See the instructions in the manual. Methods must be called in exactly the order shown. Before you can call findMissingAtoms(), you first have to either call findMissingResidues() or else set the missingResidues field yourself.

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

2 participants