Skip to content

Commit dc1aeeb

Browse files
committed
I hate linters
1 parent 8fe05b2 commit dc1aeeb

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/accessvis/widgets/clock_widget.py

+9-11
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
class ClockWidget(WidgetMPL):
1010
def __init__(
11-
self,
12-
lv,
13-
text_colour="white",
14-
background="black",
15-
show_seconds=False,
16-
show_minutes=True,
17-
show_hours=True,
18-
**kwargs
11+
self,
12+
lv,
13+
text_colour="white",
14+
background="black",
15+
show_seconds=False,
16+
show_minutes=True,
17+
show_hours=True,
18+
**kwargs
1919
):
2020
super().__init__(lv=lv, **kwargs)
2121
self.text_colour = text_colour
@@ -58,9 +58,7 @@ def _update_mpl(self, fig, ax, time: datetime.time = None, **kwargs):
5858
- np.pi / 6.0
5959
)
6060
angles_m = (
61-
2 * np.pi * minute / 60
62-
+ 2 * np.pi * second / (60 * 60)
63-
- np.pi / 6.0
61+
2 * np.pi * minute / 60 + 2 * np.pi * second / (60 * 60) - np.pi / 6.0
6462
)
6563
angles_s = 2 * np.pi * second / 60 - np.pi / 6.0
6664

0 commit comments

Comments
 (0)