We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c383e1 commit 945b566Copy full SHA for 945b566
packetraven/plotting.py
@@ -34,7 +34,7 @@ def __init__(
34
raise NotImplementedError(f'unsupported plotting variable "{variable}"')
35
36
self.packet_tracks = packet_tracks
37
- self.predictions = predictions
+ self.predictions = predictions if predictions is not None else {}
38
self.variable = variable
39
40
self.window.protocol('WM_DELETE_WINDOW', self.window.iconify)
@@ -48,7 +48,7 @@ def update(
48
):
49
if packet_tracks is not None:
50
self.packet_tracks.update(packet_tracks)
51
- if packet_tracks is not None:
+ if predictions is not None:
52
self.predictions.update(predictions)
53
54
if len(self.packet_tracks) > 0:
0 commit comments