From ac59cfc9c239797fd8cfc1d369b44c4d542dc966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Alonso=20=C3=81lvarez?= Date: Fri, 1 Dec 2023 13:57:20 +0000 Subject: [PATCH] Use a simple path to load data and explain to user to use their own --- docs/demo/scripts/customise_a_node.py | 4 +--- docs/demo/scripts/customise_an_arc.py | 4 +--- docs/demo/scripts/land_demo.py | 4 +--- docs/demo/scripts/oxford_demo.py | 4 +--- docs/demo/scripts/quickstart_demo.py | 5 ++--- 5 files changed, 6 insertions(+), 15 deletions(-) diff --git a/docs/demo/scripts/customise_a_node.py b/docs/demo/scripts/customise_a_node.py index ea1f490..1a30e4b 100644 --- a/docs/demo/scripts/customise_a_node.py +++ b/docs/demo/scripts/customise_a_node.py @@ -55,10 +55,8 @@ # %% [markdown] # The model can be automatically created using the data_folder # %% -# Use this path if compiling documentation +# Select the root path for the data folder. Use the appropriate value for your case. data_folder = os.path.join(os.path.abspath(""), "docs", "demo", "data") -# Use this path otherwise -data_folder = os.path.join(os.path.split(os.path.abspath(""))[0], "data") baseline_model = create_oxford_model(data_folder) # %% [markdown] diff --git a/docs/demo/scripts/customise_an_arc.py b/docs/demo/scripts/customise_an_arc.py index aa60875..7a680da 100644 --- a/docs/demo/scripts/customise_an_arc.py +++ b/docs/demo/scripts/customise_an_arc.py @@ -54,10 +54,8 @@ # %% [markdown] # The model can be automatically created using the data_folder # %% -# Use this path if compiling documentation +# Select the root path for the data folder. Use the appropriate value for your case. data_folder = os.path.join(os.path.abspath(""), "docs", "demo", "data") -# Use this path otherwise -data_folder = os.path.join(os.path.split(os.path.abspath(""))[0], "data") baseline_model = create_oxford_model_mrf(data_folder) diff --git a/docs/demo/scripts/land_demo.py b/docs/demo/scripts/land_demo.py index f3d631f..1992793 100644 --- a/docs/demo/scripts/land_demo.py +++ b/docs/demo/scripts/land_demo.py @@ -55,10 +55,8 @@ # Load input data # %% -# Use this path if compiling documentation +# Select the root path for the data folder. Use the appropriate value for your case. data_folder = os.path.join(os.path.abspath(""), "docs", "demo", "data") -# Use this path otherwise -data_folder = os.path.join(os.path.split(os.path.abspath(""))[0], "data") input_fid = os.path.join(data_folder, "processed", "timeseries_data.csv") input_data = pd.read_csv(input_fid) diff --git a/docs/demo/scripts/oxford_demo.py b/docs/demo/scripts/oxford_demo.py index 129ee18..a54f0dc 100644 --- a/docs/demo/scripts/oxford_demo.py +++ b/docs/demo/scripts/oxford_demo.py @@ -91,10 +91,8 @@ # Load input data # %% -# Use this path if compiling documentation +# Select the root path for the data folder. Use the appropriate value for your case. data_folder = os.path.join(os.path.abspath(""), "docs", "demo", "data") -# Use this path otherwise -data_folder = os.path.join(os.path.split(os.path.abspath(""))[0], "data") input_fid = os.path.join(data_folder, "processed", "timeseries_data.csv") input_data = pd.read_csv(input_fid) diff --git a/docs/demo/scripts/quickstart_demo.py b/docs/demo/scripts/quickstart_demo.py index da94681..5d8cc0b 100644 --- a/docs/demo/scripts/quickstart_demo.py +++ b/docs/demo/scripts/quickstart_demo.py @@ -48,10 +48,9 @@ # evapotranspiration (et0). # %% -# Use this path if compiling documentation +# Select the root path for the data folder. Use the appropriate value for your case. data_folder = os.path.join(os.path.abspath(""), "docs", "demo", "data") -# Use this path otherwise -data_folder = os.path.join(os.path.split(os.path.abspath(""))[0], "data") + input_fid = os.path.join(data_folder, "processed", "timeseries_data.csv") input_data = pd.read_csv(input_fid)