From 2da1c1aeb512cf44f4c85ef70b5cb5280b65934e Mon Sep 17 00:00:00 2001 From: Michele Ceriotti Date: Sat, 26 Aug 2023 13:13:36 -0700 Subject: [PATCH] Update python/chemiscope/structures/_shapes.py Co-authored-by: Rose K. Cersonsky <47536110+rosecers@users.noreply.github.com> --- python/chemiscope/structures/_shapes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/chemiscope/structures/_shapes.py b/python/chemiscope/structures/_shapes.py index a6bb21c09..5c84c9d5b 100644 --- a/python/chemiscope/structures/_shapes.py +++ b/python/chemiscope/structures/_shapes.py @@ -38,8 +38,7 @@ def _oriented_circle(radius, vec, n_points=20): # generate n_points in the plane defined by nvec, centered at vec angles = np.linspace(0, 2 * np.pi, n_points, endpoint=False) - circle_points = np.outer(np.cos(angles), u) + np.outer(np.sin(angles), v) - circle_points = radius * circle_points + circle_points = radius * np.outer(np.cos(angles), u) + np.outer(np.sin(angles), v) return circle_points