From 2ed797b1f86fb3992c2154c1fd93a2fcb4e15c8b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 5 Sep 2024 14:16:39 +0300 Subject: [PATCH] Refactor: remove unused import, use constants directly --- svg_wheel.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/svg_wheel.py b/svg_wheel.py index 1801a4d..7e1ce7f 100644 --- a/svg_wheel.py +++ b/svg_wheel.py @@ -1,5 +1,4 @@ import math -import os import xml.etree.ElementTree as et HEADERS = b""" @@ -22,7 +21,6 @@ OUTER_RADIUS = 180 INNER_RADIUS = OUTER_RADIUS / 2 CENTER = PADDING + OUTER_RADIUS -TAU = 2 * math.pi # The angle, in radians, of a full circle. def annular_sector_path(start, stop): @@ -60,9 +58,9 @@ def add_annular_sectors(wheel, packages, total): def angles(index, total): # Angle, in radians, of one wedge of the wheel. - angle_per_wedge = TAU / total + angle_per_wedge = math.tau / total # Used to turn the start of the wheel from east to north. - quarter_circle = TAU / 4 + quarter_circle = math.tau / 4 # Angle of the beginning of the wedge. start = (index * angle_per_wedge) - quarter_circle