Environment
Python version: Python3
Operating System: MacOS
Issue
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.
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
Segmentshould stop extending fromABCand the abstract methods need to be removed.