From 2b36764d52587b7ea4aa1ad1363843cc01399a8d Mon Sep 17 00:00:00 2001 From: "Sergio A. Dorado-Rojas" Date: Thu, 23 Feb 2023 16:02:43 -0500 Subject: [PATCH] Fixed old paths in the adding forecast example --- test/2_PowerSystems_examples/05_add_forecasts.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/2_PowerSystems_examples/05_add_forecasts.jl b/test/2_PowerSystems_examples/05_add_forecasts.jl index 089afe1..908c26c 100644 --- a/test/2_PowerSystems_examples/05_add_forecasts.jl +++ b/test/2_PowerSystems_examples/05_add_forecasts.jl @@ -7,7 +7,11 @@ using JSON3 pkgpath = pkgdir(SIIPExamples) include(joinpath(pkgpath, "test", "2_PowerSystems_examples", "02_parse_matpower.jl")) -FORECASTS_DIR = joinpath(base_dir, "forecasts", "5bus_ts") +base_dir = PowerSystems.download(PowerSystems.TestData; branch = "master"); + +# Directory where the forecast data is stored +FORECASTS_DIR = joinpath(base_dir, "5-Bus", "5bus_ts") + fname = joinpath(FORECASTS_DIR, "timeseries_pointers_da.json") open(fname, "r") do f JSON3.@pretty JSON3.read(f)