From da5202b38b53273a0503f68b6e113da365a1218f Mon Sep 17 00:00:00 2001 From: Robbi Bishop-Taylor Date: Wed, 9 Oct 2024 04:41:54 +0000 Subject: [PATCH] Fix notebook --- docs/notebooks/Model_tides.ipynb | 97 +++++++++++++++----------------- 1 file changed, 46 insertions(+), 51 deletions(-) diff --git a/docs/notebooks/Model_tides.ipynb b/docs/notebooks/Model_tides.ipynb index 68ed328..9fb98f1 100644 --- a/docs/notebooks/Model_tides.ipynb +++ b/docs/notebooks/Model_tides.ipynb @@ -23,7 +23,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 10, "metadata": { "tags": [] }, @@ -41,7 +41,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 11, "metadata": { "tags": [] }, @@ -52,7 +52,13 @@ "text": [ "────────────────────────────────────────────────────────────────────────────────\n", " 󠀠🌊 | Model | Expected path \n", - "────────────────────────────────────────────────────────────────────────────────\n", + "────────────────────────────────────────────────────────────────────────────────\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ " ✅ │ EOT20 │ ../../tests/data/tide_models/EOT20/ocean_tides \n", " ✅ │ HAMTIDE11 │ ../../tests/data/tide_models/hamtide \n", "────────────────────────────────────────────────────────────────────────────────\n", @@ -92,7 +98,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 12, "metadata": { "tags": [] }, @@ -101,7 +107,14 @@ "name": "stdout", "output_type": "stream", "text": [ - "Modelling tides using EOT20\n" + "Modelling tides using EOT20" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n" ] }, { @@ -188,7 +201,7 @@ "2018-01-01 04:00:00 122.2186 -18.0008 EOT20 1.181283" ] }, - "execution_count": 3, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -208,31 +221,6 @@ "tide_df.head()" ] }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "Index([122.2186, 122.2186, 122.2186, 122.2186, 122.2186, 122.2186, 122.2186,\n", - " 122.2186, 122.2186, 122.2186,\n", - " ...\n", - " 122.2186, 122.2186, 122.2186, 122.2186, 122.2186, 122.2186, 122.2186,\n", - " 122.2186, 122.2186, 122.2186],\n", - " dtype='float64', name='x', length=721)" - ] - }, - "execution_count": 9, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "tide_df.index.get_level_values(level=\"x\")" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -249,7 +237,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 13, "metadata": { "tags": [] }, @@ -292,7 +280,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 14, "metadata": { "tags": [] }, @@ -308,7 +296,14 @@ "name": "stderr", "output_type": "stream", "text": [ - "100%|██████████| 2/2 [00:00<00:00, 7.39it/s]\n" + " 0%| | 0/2 [00:00" ] }, - "execution_count": 6, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" }, @@ -478,7 +473,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 16, "metadata": { "tags": [] }, @@ -501,7 +496,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "100%|██████████| 2/2 [00:00<00:00, 7.69it/s]\n" + "100%|██████████| 2/2 [00:00<00:00, 11.39it/s]\n" ] }, { @@ -580,7 +575,7 @@ "2018-01-31 122.22 -18.21 EOT20 0.368303" ] }, - "execution_count": 7, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -610,7 +605,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 17, "metadata": { "tags": [] }, @@ -664,7 +659,7 @@ "1 2018-01-31 122.22 -18.21" ] }, - "execution_count": 8, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -689,7 +684,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 18, "metadata": { "tags": [] }, @@ -705,7 +700,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "100%|██████████| 2/2 [00:00<00:00, 7.52it/s]\n" + "100%|██████████| 2/2 [00:00<00:00, 11.22it/s]\n" ] }, { @@ -760,7 +755,7 @@ "1 2018-01-31 122.22 -18.21 0.368303" ] }, - "execution_count": 9, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -789,7 +784,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 19, "metadata": { "tags": [] }, @@ -805,7 +800,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "100%|██████████| 4/4 [00:00<00:00, 10.72it/s]\n" + "100%|██████████| 4/4 [00:00<00:00, 16.61it/s]\n" ] }, { @@ -916,7 +911,7 @@ "2018-01-31 122.22 -18.21 HAMTIDE11 0.588129" ] }, - "execution_count": 10, + "execution_count": 19, "metadata": {}, "output_type": "execute_result" } @@ -943,7 +938,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 20, "metadata": { "tags": [] }, @@ -959,7 +954,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "100%|██████████| 4/4 [00:00<00:00, 12.83it/s]\n" + "100%|██████████| 4/4 [00:00<00:00, 15.95it/s]\n" ] }, { @@ -1043,7 +1038,7 @@ " 122.22 -18.21 0.368303 0.588129" ] }, - "execution_count": 11, + "execution_count": 20, "metadata": {}, "output_type": "execute_result" }