Skip to content

Commit

Permalink
doc: updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrederiksen committed Apr 8, 2020
1 parent 840d75b commit a5f5d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sisl/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3089,7 +3089,7 @@ def bond_completion(self, nbonds, bond=None, new_bond=None, atom=None, idx=None)
--------
>>> g = geom.graphene(orthogonal=True).tile(3, 0).tile(4, 1)
>>> g.cell[0] *= 2
>>> g.bond_completion(3, atom=Atom(1), bond=1.09)
>>> g.bond_completion(3, bond=1.42, new_bond=1.09, atom=Atom(1))
"""

if idx is not None:
Expand All @@ -3111,7 +3111,7 @@ def bond_completion(self, nbonds, bond=None, new_bond=None, atom=None, idx=None)
else:
ria = 1e-4 + bond
idx = self.close(ia, R=(0.1, ria), ret_xyz=True)
# We just need second shell coordinates
# We just need second-shell coordinates
xyz = idx[1][1]
if len(xyz) == nbonds - 1:
# Compute bond vector
Expand Down

0 comments on commit a5f5d11

Please sign in to comment.