Skip to content

Commit 0509adf

Browse files
committed
Fix rounding
1 parent 0f718ac commit 0509adf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

template/startup_scripts/0002_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ def _extract_info(self, ax: Axes) -> None:
290290
for wedge in ax.patches:
291291
pie_data = PieData(
292292
label=wedge.get_label(),
293-
angle=abs(_dynamic_round(wedge.theta2 - wedge.theta1)),
293+
angle=abs(
294+
_dynamic_round(Decimal(wedge.theta2) - Decimal(wedge.theta1))
295+
),
294296
radius=wedge.r,
295297
)
296298

0 commit comments

Comments
 (0)