Skip to content

Commit

Permalink
Check if the ESMF warning is the issue in the tests failure
Browse files Browse the repository at this point in the history
  • Loading branch information
manishvenu committed Jan 10, 2025
1 parent 05b96df commit 606273d
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions demos/reanalysis-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import warnings\n",
"warnings.filterwarnings(\"ignore\", module=\"esmpy\")\n",
"import regional_mom6 as rmom6\n",
"\n",
"import os\n",
Expand Down Expand Up @@ -134,9 +136,21 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"outputs": [
{
"ename": "NameError",
"evalue": "name 'longitude_extent' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"Input \u001b[0;32mIn [2]\u001b[0m, in \u001b[0;36m<cell line: 0>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m expt \u001b[38;5;241m=\u001b[39m rmom6\u001b[38;5;241m.\u001b[39mexperiment(\n\u001b[0;32m----> 2\u001b[0m longitude_extent \u001b[38;5;241m=\u001b[39m \u001b[43mlongitude_extent\u001b[49m,\n\u001b[1;32m 3\u001b[0m latitude_extent \u001b[38;5;241m=\u001b[39m latitude_extent,\n\u001b[1;32m 4\u001b[0m date_range \u001b[38;5;241m=\u001b[39m date_range,\n\u001b[1;32m 5\u001b[0m resolution \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m0.05\u001b[39m,\n\u001b[1;32m 6\u001b[0m number_vertical_layers \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m75\u001b[39m,\n\u001b[1;32m 7\u001b[0m layer_thickness_ratio \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m10\u001b[39m,\n\u001b[1;32m 8\u001b[0m depth \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m4500\u001b[39m,\n\u001b[1;32m 9\u001b[0m minimum_depth \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m5\u001b[39m,\n\u001b[1;32m 10\u001b[0m mom_run_dir \u001b[38;5;241m=\u001b[39m run_dir,\n\u001b[1;32m 11\u001b[0m mom_input_dir \u001b[38;5;241m=\u001b[39m input_dir,\n\u001b[1;32m 12\u001b[0m toolpath_dir \u001b[38;5;241m=\u001b[39m toolpath_dir,\n\u001b[1;32m 13\u001b[0m boundaries\u001b[38;5;241m=\u001b[39m[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mnorth\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124msouth\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124meast\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mwest\u001b[39m\u001b[38;5;124m\"\u001b[39m]\n\u001b[1;32m 14\u001b[0m )\n",
"\u001b[0;31mNameError\u001b[0m: name 'longitude_extent' is not defined"
]
}
],
"source": [
"expt = rmom6.experiment(\n",
" longitude_extent = longitude_extent,\n",
Expand Down Expand Up @@ -439,7 +453,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "crr_dev",
"display_name": "CrocoDash",
"language": "python",
"name": "python3"
},
Expand All @@ -453,7 +467,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.12.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 606273d

Please sign in to comment.