Skip to content

Commit

Permalink
Use a simple path to load data and explain to user to use their own
Browse files Browse the repository at this point in the history
  • Loading branch information
dalonsoa committed Dec 1, 2023
1 parent a42eb25 commit ac59cfc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
4 changes: 1 addition & 3 deletions docs/demo/scripts/customise_a_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 1 addition & 3 deletions docs/demo/scripts/customise_an_arc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 1 addition & 3 deletions docs/demo/scripts/land_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions docs/demo/scripts/oxford_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions docs/demo/scripts/quickstart_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ac59cfc

Please sign in to comment.