mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-08 04:11:47 +02:00
Fix func test with row/col of 0. PEP8 cleanup. Smaller global test case.
This commit is contained in:
@@ -121,4 +121,15 @@ class timing_graph():
|
||||
def __str__(self):
|
||||
""" override print function output """
|
||||
|
||||
return "Nodes: {}\nEdges:{} ".format(list(self.graph), self.graph)
|
||||
str = ""
|
||||
for n in self.graph:
|
||||
str += n + "\n"
|
||||
for d in self.graph[n]:
|
||||
str += "\t\t-> " + d + "\n"
|
||||
return str
|
||||
|
||||
def __repr__(self):
|
||||
""" override print function output """
|
||||
|
||||
return str(self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user