mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-06 11:10:06 +01:00
fixed wrong output format for 3-digit TP numbers
This commit is contained in:
@@ -319,7 +319,12 @@ class Frontend(object):
|
||||
continue
|
||||
left_len = len(str(float(ports[i])).split('.')[0])
|
||||
substr = '{:' + str(left_len) + '.' + str(max(port_len[i] - left_len - 1, 0)) + 'f}'
|
||||
string_result += substr.format(ports[i]) + ' {} '.format(separator[i])
|
||||
substr = substr.format(ports[i])
|
||||
string_result += (
|
||||
substr + ' {} '.format(separator[i])
|
||||
if '.' in substr
|
||||
else '{:.1f}{} '.format(ports[i], separator[i])
|
||||
)
|
||||
return string_result[:-1]
|
||||
|
||||
def _get_node_by_lineno(self, lineno, kernel):
|
||||
|
||||
Reference in New Issue
Block a user