Skip to content

Commit

Permalink
Merge pull request #241 from bamattsson/fixing_bug_in_atom_preprocessing
Browse files Browse the repository at this point in the history
Fixing bug leading to atom graph containing a lot of incorrect atoms
  • Loading branch information
jsilter authored Sep 3, 2024
2 parents b65b59a + 8c0b943 commit 3e80ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasets/parse_chi.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def batch_compute_dihedral_angles(sidechains):

def get_coords(prody_pdb):
resindices = sorted(set(prody_pdb.ca.getResindices()))
coords = np.zeros((len(resindices), 14, 3))
coords = np.full((len(resindices), 14, 3), np.nan)
for i, resind in enumerate(resindices):
sel = prody_pdb.select(f'resindex {resind}')
resname = sel.getResnames()[0]
Expand Down

0 comments on commit 3e80ffd

Please sign in to comment.