Skip to content

Commit

Permalink
Merge pull request #57 from OceanParcels/fix_print_experiment_name
Browse files Browse the repository at this point in the history
Fix tiny bug printing the index of the experiment in the idealised flow example
  • Loading branch information
michaeldenes authored Sep 25, 2024
2 parents a61baa1 + d6a41d8 commit 757234e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/examples/example_idealised_flow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
"output_type": "stream",
"text": [
"INFO: Output files are stored in example_idealised_flow_experiment_1.zarr.\n",
"100%|██████████| 345600.0/345600.0 [00:38<00:00, 8911.29it/s]\n"
"100%|██████████| 345600.0/345600.0 [00:44<00:00, 7791.01it/s]\n"
]
}
],
Expand Down Expand Up @@ -421,7 +421,7 @@
"output_type": "stream",
"text": [
"INFO: Output files are stored in example_idealised_flow_experiment_2.zarr.\n",
"100%|██████████| 345600.0/345600.0 [00:47<00:00, 7258.52it/s]\n"
"100%|██████████| 345600.0/345600.0 [00:55<00:00, 6278.37it/s]\n"
]
}
],
Expand Down Expand Up @@ -501,7 +501,7 @@
"output_type": "stream",
"text": [
"INFO: Output files are stored in example_idealised_flow_experiment_3.zarr.\n",
"100%|██████████| 345600.0/345600.0 [00:55<00:00, 6218.34it/s]\n"
"100%|██████████| 345600.0/345600.0 [01:00<00:00, 5742.26it/s]\n"
]
}
],
Expand Down Expand Up @@ -581,7 +581,7 @@
"output_type": "stream",
"text": [
"INFO: Output files are stored in example_idealised_flow_experiment_4.zarr.\n",
"100%|██████████| 345600.0/345600.0 [00:49<00:00, 7013.46it/s]\n"
"100%|██████████| 345600.0/345600.0 [00:53<00:00, 6502.73it/s]\n"
]
}
],
Expand Down Expand Up @@ -661,7 +661,7 @@
"output_type": "stream",
"text": [
"INFO: Output files are stored in example_idealised_flow_experiment_5.zarr.\n",
"100%|██████████| 345600.0/345600.0 [01:07<00:00, 5152.07it/s]\n"
"100%|██████████| 345600.0/345600.0 [01:21<00:00, 4246.80it/s]\n"
]
}
],
Expand Down Expand Up @@ -719,7 +719,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Final depth range of particles in experiment 0: 557.2360 to 557.2360 m\n"
"Final depth range of particles in experiment 1: 557.2360 to 557.2360 m\n"
]
},
{
Expand All @@ -736,7 +736,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Final depth range of particles in experiment 1: 0.0000 to 0.0000 m\n"
"Final depth range of particles in experiment 2: 0.0000 to 0.0000 m\n"
]
},
{
Expand All @@ -753,7 +753,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Final depth range of particles in experiment 2: 554.3013 to 554.3013 m\n"
"Final depth range of particles in experiment 3: 554.3013 to 554.3013 m\n"
]
},
{
Expand All @@ -770,7 +770,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Final depth range of particles in experiment 3: 557.2427 to 557.3295 m\n"
"Final depth range of particles in experiment 4: 557.2427 to 557.3295 m\n"
]
},
{
Expand All @@ -787,7 +787,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Final depth range of particles in experiment 4: 557.2427 to 557.3296 m\n"
"Final depth range of particles in experiment 5: 557.2427 to 557.3296 m\n"
]
}
],
Expand Down Expand Up @@ -815,7 +815,7 @@
" plt.title(f'Experiment {i+1}')\n",
" plt.show()\n",
"\n",
" 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')"
" 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')"
]
}
],
Expand All @@ -835,7 +835,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "undefined.undefined.undefined"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 757234e

Please sign in to comment.