Skip to content

Commit 757234e

Browse files
authored
Merge pull request #57 from OceanParcels/fix_print_experiment_name
Fix tiny bug printing the index of the experiment in the idealised flow example
2 parents a61baa1 + d6a41d8 commit 757234e

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

docs/examples/example_idealised_flow.ipynb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
"output_type": "stream",
342342
"text": [
343343
"INFO: Output files are stored in example_idealised_flow_experiment_1.zarr.\n",
344-
"100%|██████████| 345600.0/345600.0 [00:38<00:00, 8911.29it/s]\n"
344+
"100%|██████████| 345600.0/345600.0 [00:44<00:00, 7791.01it/s]\n"
345345
]
346346
}
347347
],
@@ -421,7 +421,7 @@
421421
"output_type": "stream",
422422
"text": [
423423
"INFO: Output files are stored in example_idealised_flow_experiment_2.zarr.\n",
424-
"100%|██████████| 345600.0/345600.0 [00:47<00:00, 7258.52it/s]\n"
424+
"100%|██████████| 345600.0/345600.0 [00:55<00:00, 6278.37it/s]\n"
425425
]
426426
}
427427
],
@@ -501,7 +501,7 @@
501501
"output_type": "stream",
502502
"text": [
503503
"INFO: Output files are stored in example_idealised_flow_experiment_3.zarr.\n",
504-
"100%|██████████| 345600.0/345600.0 [00:55<00:00, 6218.34it/s]\n"
504+
"100%|██████████| 345600.0/345600.0 [01:00<00:00, 5742.26it/s]\n"
505505
]
506506
}
507507
],
@@ -581,7 +581,7 @@
581581
"output_type": "stream",
582582
"text": [
583583
"INFO: Output files are stored in example_idealised_flow_experiment_4.zarr.\n",
584-
"100%|██████████| 345600.0/345600.0 [00:49<00:00, 7013.46it/s]\n"
584+
"100%|██████████| 345600.0/345600.0 [00:53<00:00, 6502.73it/s]\n"
585585
]
586586
}
587587
],
@@ -661,7 +661,7 @@
661661
"output_type": "stream",
662662
"text": [
663663
"INFO: Output files are stored in example_idealised_flow_experiment_5.zarr.\n",
664-
"100%|██████████| 345600.0/345600.0 [01:07<00:00, 5152.07it/s]\n"
664+
"100%|██████████| 345600.0/345600.0 [01:21<00:00, 4246.80it/s]\n"
665665
]
666666
}
667667
],
@@ -719,7 +719,7 @@
719719
"name": "stdout",
720720
"output_type": "stream",
721721
"text": [
722-
"Final depth range of particles in experiment 0: 557.2360 to 557.2360 m\n"
722+
"Final depth range of particles in experiment 1: 557.2360 to 557.2360 m\n"
723723
]
724724
},
725725
{
@@ -736,7 +736,7 @@
736736
"name": "stdout",
737737
"output_type": "stream",
738738
"text": [
739-
"Final depth range of particles in experiment 1: 0.0000 to 0.0000 m\n"
739+
"Final depth range of particles in experiment 2: 0.0000 to 0.0000 m\n"
740740
]
741741
},
742742
{
@@ -753,7 +753,7 @@
753753
"name": "stdout",
754754
"output_type": "stream",
755755
"text": [
756-
"Final depth range of particles in experiment 2: 554.3013 to 554.3013 m\n"
756+
"Final depth range of particles in experiment 3: 554.3013 to 554.3013 m\n"
757757
]
758758
},
759759
{
@@ -770,7 +770,7 @@
770770
"name": "stdout",
771771
"output_type": "stream",
772772
"text": [
773-
"Final depth range of particles in experiment 3: 557.2427 to 557.3295 m\n"
773+
"Final depth range of particles in experiment 4: 557.2427 to 557.3295 m\n"
774774
]
775775
},
776776
{
@@ -787,7 +787,7 @@
787787
"name": "stdout",
788788
"output_type": "stream",
789789
"text": [
790-
"Final depth range of particles in experiment 4: 557.2427 to 557.3296 m\n"
790+
"Final depth range of particles in experiment 5: 557.2427 to 557.3296 m\n"
791791
]
792792
}
793793
],
@@ -815,7 +815,7 @@
815815
" plt.title(f'Experiment {i+1}')\n",
816816
" plt.show()\n",
817817
"\n",
818-
" print(f'Final depth range of particles in experiment {i}: {format(np.nanmin(pfile[\"z\"].values[:,-1]), '.4f')} to {format(np.nanmax(pfile[\"z\"].values[:,-1]), '.4f')} m')"
818+
" print(f'Final depth range of particles in experiment {i+1}: {format(np.nanmin(pfile[\"z\"].values[:,-1]), '.4f')} to {format(np.nanmax(pfile[\"z\"].values[:,-1]), '.4f')} m')"
819819
]
820820
}
821821
],
@@ -835,7 +835,7 @@
835835
"name": "python",
836836
"nbconvert_exporter": "python",
837837
"pygments_lexer": "ipython3",
838-
"version": "undefined.undefined.undefined"
838+
"version": "3.12.5"
839839
}
840840
},
841841
"nbformat": 4,

0 commit comments

Comments
 (0)