Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dry-lions-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2b/data-extractor': minor
---

updated dependencies to latest
2 changes: 1 addition & 1 deletion chart_data_extractor/e2b_charts/charts/pie.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _extract_info(self, ax: Axes) -> None:
for wedge in ax.patches:
pie_data = PieData(
label=wedge.get_label(),
angle=abs(dynamic_round(Decimal(wedge.theta2) - Decimal(wedge.theta1))),
angle=abs(dynamic_round(Decimal(float(wedge.theta2)) - Decimal(float(wedge.theta1)))),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

numpy 2.x removed implicit conversion from numpy.float32 to Decimal, so wrapping with float() first resolves it

radius=wedge.r,
)

Expand Down
Loading
Loading