process replay: ordered dict is in Python

pull/35867/head^2
Shane Smiskol 1 month ago
parent c4298ce287
commit f2c17dd688
  1. 4
      selfdrive/test/process_replay/process_replay.py

@ -4,7 +4,7 @@ import time
import copy import copy
import heapq import heapq
import signal import signal
from collections import Counter, OrderedDict from collections import Counter
from dataclasses import dataclass, field from dataclasses import dataclass, field
from typing import Any from typing import Any
from collections.abc import Callable, Iterable from collections.abc import Callable, Iterable
@ -79,7 +79,7 @@ class ReplayContext:
messaging.set_fake_prefix(self.proc_name) messaging.set_fake_prefix(self.proc_name)
if self.main_pub is None: if self.main_pub is None:
self.events = OrderedDict() self.events = {}
pubs_with_events = [pub for pub in self.pubs if pub not in self.unlocked_pubs] pubs_with_events = [pub for pub in self.pubs if pub not in self.unlocked_pubs]
for pub in pubs_with_events: for pub in pubs_with_events:
self.events[pub] = messaging.fake_event_handle(pub, enable=True) self.events[pub] = messaging.fake_event_handle(pub, enable=True)

Loading…
Cancel
Save