Skip to content

Commit

Permalink
I hate linters
Browse files Browse the repository at this point in the history
  • Loading branch information
max-anu committed Dec 18, 2024
1 parent 8fe05b2 commit dc1aeeb
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/accessvis/widgets/clock_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

class ClockWidget(WidgetMPL):
def __init__(
self,
lv,
text_colour="white",
background="black",
show_seconds=False,
show_minutes=True,
show_hours=True,
**kwargs
self,
lv,
text_colour="white",
background="black",
show_seconds=False,
show_minutes=True,
show_hours=True,
**kwargs
):
super().__init__(lv=lv, **kwargs)
self.text_colour = text_colour
Expand Down Expand Up @@ -58,9 +58,7 @@ def _update_mpl(self, fig, ax, time: datetime.time = None, **kwargs):
- np.pi / 6.0
)
angles_m = (
2 * np.pi * minute / 60
+ 2 * np.pi * second / (60 * 60)
- np.pi / 6.0
2 * np.pi * minute / 60 + 2 * np.pi * second / (60 * 60) - np.pi / 6.0
)
angles_s = 2 * np.pi * second / 60 - np.pi / 6.0

Expand Down

0 comments on commit dc1aeeb

Please sign in to comment.