Skip to content

Commit

Permalink
fixed fun little bug in which parsley ff C-Cl bonds weren't getting r…
Browse files Browse the repository at this point in the history
…ecognized
  • Loading branch information
corinwagen committed Jun 6, 2020
1 parent 432d3bf commit 33d1cec
Show file tree
Hide file tree
Showing 3 changed files with 350 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cctk/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def __str__(self):
else:
return f"Molecule ({len(self.atomic_numbers)} atoms)"

def assign_connectivity(self, cutoff=0.1, periodic_boundary_conditions=None):
def assign_connectivity(self, cutoff=0.2, periodic_boundary_conditions=None):
"""
Automatically recalculates bonds based on covalent radii. If two atoms are closer than the sum of their covalent radii + 0.5 Angstroms, then they are considered bonded.
Automatically recalculates bonds based on covalent radii. If two atoms are closer than the sum of their covalent radii + ``cutoff`` Angstroms, then they are considered bonded.
Args:
cutoff (float): the threshold (in Angstroms) for how close two covalent radii must be to be considered bonded
Expand Down
Loading

0 comments on commit 33d1cec

Please sign in to comment.