From e69a73eed2d4b75e007e09b792b178753ae2a849 Mon Sep 17 00:00:00 2001 From: Yang Date: Fri, 21 Oct 2022 15:09:15 +0200 Subject: [PATCH] one small typo and missing import --- notebooks/run_model_in_notebook.ipynb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/notebooks/run_model_in_notebook.ipynb b/notebooks/run_model_in_notebook.ipynb index 9a9e5b6c..858b0b35 100644 --- a/notebooks/run_model_in_notebook.ipynb +++ b/notebooks/run_model_in_notebook.ipynb @@ -245,6 +245,8 @@ } ], "source": [ + "from pathlib import Path\n", + "\n", "forcing_filenames_list = [\n", " \"ZA-Kru_2000-2002_FLUXNET2015_Met.nc\",\n", " \"AR-SLu_2010-2010_FLUXNET2015_Met.nc\",\n", @@ -252,7 +254,7 @@ "\n", "full_run = False\n", "if full_run:\n", - " forcing_filenames_list = [file.name for file in Path(model.configs[\"ForcingPath\"]).iterdir()]\n", + " forcing_filenames_list = [file.name for file in Path(model.config[\"ForcingPath\"]).iterdir()]\n", "\n", "for nc_file in forcing_filenames_list:\n", " # setup the model\n", @@ -270,13 +272,6 @@ " print(nc_file_name)\n", " " ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {