You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defreset(self):
# record phase infoself.current_phase=0# phase id in self.phases (excluding yellow)self._current_phase=self.phases[0] # true phase id (including yellow)
what if len(self.phases)==0, it will got IndexError: list index out of range. manhattan data in https://github.com/Chacha-Chen/MPLight. In that case, len(phases) is 1, but after L61(self.phases = [i for i in range(len(phases)) if not i in self.yellow_phase_id]), len(self.phases) is 0.
https://github.com/zhc134/tlc-baselines/blob/master/world.py
L118~L121
what if
len(self.phases)==0
, it will gotIndexError: list index out of range
. manhattan data in https://github.com/Chacha-Chen/MPLight. In that case, len(phases) is 1, but after L61(self.phases = [i for i in range(len(phases)) if not i in self.yellow_phase_id]
),len(self.phases)
is 0.config.json: "roadnetFile": "manhattan.json", "flowFile": "manhattan_7846.json",
The text was updated successfully, but these errors were encountered: