diff --git a/metadrive/base_class/nameable.py b/metadrive/base_class/nameable.py index 26447479b..bdf36d3b1 100644 --- a/metadrive/base_class/nameable.py +++ b/metadrive/base_class/nameable.py @@ -7,7 +7,6 @@ class Nameable: """ Instance of this class will have a special name """ - def __init__(self, name=None): # ID for object self.name = random_string() if name is None else name diff --git a/metadrive/component/block/base_block.py b/metadrive/component/block/base_block.py index 9432f3551..628b700c1 100644 --- a/metadrive/component/block/base_block.py +++ b/metadrive/component/block/base_block.py @@ -339,8 +339,8 @@ def destroy(self): super(BaseBlock, self).destroy() # def __del__(self): - # self.destroy() - # logger.debug("{} is being deleted.".format(type(self))) + # self.destroy() + # logger.debug("{} is being deleted.".format(type(self))) @property def bounding_box(self): diff --git a/metadrive/component/road_network/edge_road_network.py b/metadrive/component/road_network/edge_road_network.py index 496ce8a8b..172c27380 100644 --- a/metadrive/component/road_network/edge_road_network.py +++ b/metadrive/component/road_network/edge_road_network.py @@ -16,7 +16,6 @@ class EdgeRoadNetwork(BaseRoadNetwork): Compared to NodeRoadNetwork representing the relation of lanes in a node-based graph, EdgeRoadNetwork stores the relationship in edge-based graph, which is more common in real map representation """ - def __init__(self): super(EdgeRoadNetwork, self).__init__() self.graph = {}