Skip to content

Commit

Permalink
Update aiidalab_widgets_base/viewers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Xing Wang <[email protected]>
  • Loading branch information
yakutovicha and superstar54 authored Nov 15, 2023
1 parent c83c196 commit a9905dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiidalab_widgets_base/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)
Expand Down

0 comments on commit a9905dd

Please sign in to comment.