Skip to content

Commit 98b0d85

Browse files
committed
fix: incorrect function name (np.concat)
1 parent 674a478 commit 98b0d85

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies = [
1515

1616
[project.optional-dependencies]
1717
dev = ["black"]
18+
test = ["pytest"]
1819

1920

2021
[project.urls]

src/plotly_3d_primitives/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
shapes in plotly
44
"""
55

6-
__version__ = "0.2.0"
6+
__version__ = "0.2.1"
77

88
from .shapes import *

src/plotly_3d_primitives/shapes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def prism(
6666
y_poly = np.sin(arr) * radius
6767
x_poly = np.zeros(n_sides)
6868

69-
x_array = np.concat([x_poly, x_poly + height])
70-
y_array = np.concat([y_poly, y_poly])
71-
z_array = np.concat([z_poly, z_poly])
69+
x_array = np.concatenate([x_poly, x_poly + height])
70+
y_array = np.concatenate([y_poly, y_poly])
71+
z_array = np.concatenate([z_poly, z_poly])
7272

7373
x_array, y_array, z_array = apply_transformations(x_array, y_array, z_array, center, direction)
7474

@@ -100,9 +100,9 @@ def cone(
100100
y_poly = np.sin(arr) * radius
101101
x_poly = np.zeros(resolution)
102102

103-
z_array = np.concat([z_poly, np.array([0])])
104-
y_array = np.concat([y_poly, np.array([0])])
105-
x_array = np.concat([x_poly, np.array([height])])
103+
z_array = np.concatenate([z_poly, np.array([0])])
104+
y_array = np.concatenate([y_poly, np.array([0])])
105+
x_array = np.concatenate([x_poly, np.array([height])])
106106

107107
x_array, y_array, z_array = apply_transformations(x_array, y_array, z_array, center, direction)
108108

@@ -221,7 +221,7 @@ def circular_arc_from_normal(
221221

222222
x_array, y_array, z_array = apply_transformations(x_array, y_array, z_array, center, normal)
223223

224-
points = np.array([x_array, y_array]).T
224+
points = np.array([x_array, y_array, z_array]).T
225225
line_properties = dict(color=color, width=line_width)
226226
if return_points:
227227
return go.Scatter3d(

0 commit comments

Comments
 (0)