Skip to content
Snippets Groups Projects

remove nested max

Open Meisam Farzalipour Tabriz requested to merge fixup into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -69,7 +69,7 @@ class TimeObj(object):
else:
idx = 0
sprint(format("Time information", "-^80"), comm=comm)
lenk = max(max([len(x) for x in self.cost]), 28)
lenk = max([len(x) for x in self.cost], 28)
fmth = "{:"+str(lenk)+"s}{:24s}{:16s}{:24s}"
sprint(fmth.format("Label", "Cost(s)", "Number", "Avg. Cost(s)"), comm=comm)
fmt = "{:"+str(lenk)+"s}{:<24.4f}{:<16d}{:<24.4f}"
Loading