mirror of https://github.com/VLSIDA/OpenRAM.git
added sorting to deliverables output
This commit is contained in:
parent
fac9ff9be6
commit
83e810f8b8
|
|
@ -78,4 +78,5 @@ class datasheet():
|
||||||
self.html += self.corners_table.to_html(comments)
|
self.html += self.corners_table.to_html(comments)
|
||||||
# display deliverables table
|
# display deliverables table
|
||||||
self.html += '<p style="font-size: 26px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">Deliverables</p>'
|
self.html += '<p style="font-size: 26px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;">Deliverables</p>'
|
||||||
|
self.dlv_table.sort()
|
||||||
self.html += self.dlv_table.to_html(comments)
|
self.html += self.dlv_table.to_html(comments)
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,8 @@ class table_gen:
|
||||||
html += '</tr>'
|
html += '</tr>'
|
||||||
html += '</tbody>'
|
html += '</tbody>'
|
||||||
return html
|
return html
|
||||||
|
def sort(self):
|
||||||
|
self.rows[1:] = sorted(self.rows[1:], key=lambda x : x[0])
|
||||||
|
|
||||||
def to_html(self,comments):
|
def to_html(self,comments):
|
||||||
"""writes table_gen object to inline html"""
|
"""writes table_gen object to inline html"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue