Skip to content

Commit a5f5d11

Browse files
committed
doc: updated example
1 parent 840d75b commit a5f5d11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sisl/geometry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3089,7 +3089,7 @@ def bond_completion(self, nbonds, bond=None, new_bond=None, atom=None, idx=None)
30893089
--------
30903090
>>> g = geom.graphene(orthogonal=True).tile(3, 0).tile(4, 1)
30913091
>>> g.cell[0] *= 2
3092-
>>> g.bond_completion(3, atom=Atom(1), bond=1.09)
3092+
>>> g.bond_completion(3, bond=1.42, new_bond=1.09, atom=Atom(1))
30933093
"""
30943094

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

0 commit comments

Comments
 (0)