Skip to content

Commit

Permalink
Fix notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt committed Oct 9, 2024
1 parent 43731d9 commit da5202b
Showing 1 changed file with 46 additions and 51 deletions.
97 changes: 46 additions & 51 deletions docs/notebooks/Model_tides.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 10,
"metadata": {
"tags": []
},
Expand All @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 11,
"metadata": {
"tags": []
},
Expand All @@ -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",
Expand Down Expand Up @@ -92,7 +98,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 12,
"metadata": {
"tags": []
},
Expand All @@ -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"
]
},
{
Expand Down Expand Up @@ -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"
}
Expand All @@ -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": {},
Expand All @@ -249,7 +237,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 13,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -292,7 +280,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 14,
"metadata": {
"tags": []
},
Expand All @@ -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<?, ?it/s]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 2/2 [00:00<00:00, 12.05it/s]\n"
]
},
{
Expand Down Expand Up @@ -402,7 +397,7 @@
"2018-01-01 04:00:00 122.2186 -18.0008 1.181283 1.034931"
]
},
"execution_count": 5,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -430,7 +425,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 15,
"metadata": {
"tags": []
},
Expand All @@ -441,7 +436,7 @@
"<Axes: xlabel='time'>"
]
},
"execution_count": 6,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -478,7 +473,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 16,
"metadata": {
"tags": []
},
Expand All @@ -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"
]
},
{
Expand Down Expand Up @@ -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"
}
Expand Down Expand Up @@ -610,7 +605,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 17,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -664,7 +659,7 @@
"1 2018-01-31 122.22 -18.21"
]
},
"execution_count": 8,
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -689,7 +684,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 18,
"metadata": {
"tags": []
},
Expand All @@ -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"
]
},
{
Expand Down Expand Up @@ -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"
}
Expand Down Expand Up @@ -789,7 +784,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 19,
"metadata": {
"tags": []
},
Expand All @@ -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"
]
},
{
Expand Down Expand Up @@ -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"
}
Expand All @@ -943,7 +938,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 20,
"metadata": {
"tags": []
},
Expand All @@ -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"
]
},
{
Expand Down Expand Up @@ -1043,7 +1038,7 @@
" 122.22 -18.21 0.368303 0.588129"
]
},
"execution_count": 11,
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
Expand Down

0 comments on commit da5202b

Please sign in to comment.