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
Traceback (most recent call last):
File "/Users/srichakradhar/Documents/GitHub/trafficSimulator/src/lane_change.py", line 12, in <module>
sim.create_segment((lane_space/2, length+intersection_size/2), (lane_space/2, intersection_size/2))
File "/Users/srichakradhar/Documents/GitHub/trafficSimulator/src/trafficSimulator/core/simulation.py", line 36, in create_segment
seg = Segment(args)
^^^^^^^^^^^^^
TypeError: Can't instantiate abstract class Segment with abstract methods compute_dx, compute_dy, compute_x, compute_y
Since abstract classes cannot be instantiated, and require subclasses to provide implementations for the abstract methods, the Segment should stop extending from ABC and the abstract methods need to be removed.
The text was updated successfully, but these errors were encountered:
Environment
Python version: Python3
Operating System: MacOS
Issue
Since abstract classes cannot be instantiated, and require subclasses to provide implementations for the abstract methods, the
Segment
should stop extending fromABC
and the abstract methods need to be removed.The text was updated successfully, but these errors were encountered: