mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 06:05:29 -04:00
Avoid unnecessary temporary list in one more place
This commit is contained in:
parent
8cf15a2275
commit
52376581b9
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ def main():
|
|||
plots.append(sys.argv[3 * i + 2])
|
||||
timings.append(parse_timings(sys.argv[3 * i + 3]))
|
||||
|
||||
routines = list(set([r for t in timings for r in list(t.keys())[:6]]))
|
||||
routines = list(set(r for t in timings for r in list(t.keys())[:6]))
|
||||
routines.remove("total")
|
||||
routines.sort(reverse=True, key=lambda r: timings[0].get(r, 0.0))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue