From a9905dd79c39054bcddae279e789c73c0d19c760 Mon Sep 17 00:00:00 2001 From: Aliaksandr Yakutovich Date: Wed, 15 Nov 2023 23:14:12 +0100 Subject: [PATCH] Update aiidalab_widgets_base/viewers.py Co-authored-by: Xing Wang --- aiidalab_widgets_base/viewers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiidalab_widgets_base/viewers.py b/aiidalab_widgets_base/viewers.py index 2b9f14df1..b39dbfcd6 100644 --- a/aiidalab_widgets_base/viewers.py +++ b/aiidalab_widgets_base/viewers.py @@ -599,7 +599,7 @@ def cylinder(v1, v2, radius, atom, color): atom1, atom2 = structure[id1], structure[id2] # Bond parameters - v1 = np.array([atom1.x, atom1.y, atom1.z]) + v1 = atom1.position half_bond_point = v1 + bond_length * Radius[atom1.symbol] / ( Radius[atom1.symbol] + Radius[atom2.symbol] )