Skip to content

Commit 2561929

Browse files
committed
doc: updated example
1 parent f1d9691 commit 2561929

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
@@ -2622,7 +2622,7 @@ def bond_completion(self, nbonds, bond=None, new_bond=None, atom=None, idx=None)
26222622
--------
26232623
>>> g = geom.graphene(orthogonal=True).tile(3, 0).tile(4, 1)
26242624
>>> g.cell[0] *= 2
2625-
>>> g.bond_completion(3, atom=Atom(1), bond=1.09)
2625+
>>> g.bond_completion(3, bond=1.42, new_bond=1.09, atom=Atom(1))
26262626
"""
26272627

26282628
if idx is not None:
@@ -2644,7 +2644,7 @@ def bond_completion(self, nbonds, bond=None, new_bond=None, atom=None, idx=None)
26442644
else:
26452645
ria = 1e-4 + bond
26462646
idx = self.close(ia, R=(0.1, ria), ret_xyz=True)
2647-
# We just need second shell coordinates
2647+
# We just need second-shell coordinates
26482648
xyz = idx[1][1]
26492649
if len(xyz) == nbonds - 1:
26502650
# Compute bond vector

0 commit comments

Comments
 (0)