From 71228cc24333b81c9f813c77bfc7871f3f1aa520 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 01:01:53 +0000 Subject: [PATCH 1/2] Initial plan From 065699d11a3df5df89485f1165442676356b24d5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 01:45:54 +0000 Subject: [PATCH 2/2] Update import patterns to modern Julia syntax Co-authored-by: jd-lara <16385323+jd-lara@users.noreply.github.com> --- src/PowerGraphics.jl | 10 +++------- test/runtests.jl | 6 ++---- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/PowerGraphics.jl b/src/PowerGraphics.jl index d7082dc..8f082f5 100644 --- a/src/PowerGraphics.jl +++ b/src/PowerGraphics.jl @@ -26,14 +26,10 @@ import DataFrames import YAML Reexport.@reexport using Plots import DataStructures: OrderedDict, SortedDict -import PowerSystems -import InfrastructureSystems +import PowerSystems as PSY +import InfrastructureSystems as IS import InteractiveUtils -import PowerAnalytics - -const PSY = PowerSystems -const IS = InfrastructureSystems -const PA = PowerAnalytics +import PowerAnalytics as PA include("definitions.jl") include("plot_recipes.jl") diff --git a/test/runtests.jl b/test/runtests.jl index 36641b6..e90baec 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -4,7 +4,7 @@ using Logging using Dates using DataFrames using DataStructures -import InfrastructureSystems +import InfrastructureSystems as IS import InfrastructureSystems: Deterministic, Probabilistic, Scenarios, Forecast using PowerSystems using PowerGraphics @@ -18,7 +18,6 @@ using TimeSeries using HydroPowerSimulations const PG = PowerGraphics -const IS = InfrastructureSystems const PSY = PowerSystems const PSI = PowerSimulations const PA = PowerAnalytics @@ -32,8 +31,7 @@ const TEST_RESULT_DIR = joinpath(TEST_OUTPUTS, "results") !isdir(TEST_RESULT_DIR) && mkdir(TEST_RESULT_DIR) const TEST_SIM_NAME = "results_sim" -import PowerSystemCaseBuilder -const PSB = PowerSystemCaseBuilder +import PowerSystemCaseBuilder as PSB template_dir = joinpath(BASE_DIR, "report_templates") const generic_template = joinpath(template_dir, "generic_report_template.jmd")