From 606273ddd2d6f910866eb44e83ec4f6109a5dc43 Mon Sep 17 00:00:00 2001 From: manishvenu Date: Fri, 10 Jan 2025 14:49:29 -0700 Subject: [PATCH] Check if the ESMF warning is the issue in the tests failure --- demos/reanalysis-forced.ipynb | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/demos/reanalysis-forced.ipynb b/demos/reanalysis-forced.ipynb index 84ba01a9..8fe52907 100644 --- a/demos/reanalysis-forced.ipynb +++ b/demos/reanalysis-forced.ipynb @@ -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", @@ -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\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", @@ -439,7 +453,7 @@ ], "metadata": { "kernelspec": { - "display_name": "crr_dev", + "display_name": "CrocoDash", "language": "python", "name": "python3" }, @@ -453,7 +467,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.7" + "version": "3.12.8" } }, "nbformat": 4,