Skip to content

Commit 85fe152

Browse files
committed
fix: update field name from 'i' to 'id' in CSV output for clarity
1 parent f05cda6 commit 85fe152

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples-proposed/022-tasks-and-ensembles/mpi_stats.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
sleep(args.sleep)
6060

6161
if args.output is not None:
62-
with open(args.output, 'w', newline='') as csvfile:
62+
with open(f'{args.output}_rank_{rank}', 'w', newline='') as csvfile:
6363
fieldnames = ['id', 'hostname', 'rank', 'size', 'pid', 'n_cores', 'affinity', 's', 'start', 'end']
6464
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
6565

0 commit comments

Comments
 (0)