Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanyiLi committed Oct 25, 2023
1 parent 1a3ab1e commit 2934da3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion metadrive/base_class/nameable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions metadrive/component/block/base_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion metadrive/component/road_network/edge_road_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 2934da3

Please sign in to comment.