From db58c4fcdc9717f3f9654b1f472530daa132dde9 Mon Sep 17 00:00:00 2001 From: Robert Parker Date: Tue, 4 Mar 2025 12:30:53 -0700 Subject: [PATCH] More accurate message when deactivating isolated components (#943) --- CHANGELOG.md | 2 +- src/core/data.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b21a36d..5f7dec8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ PowerModels.jl Change Log ========================= ### Staged -- nothing +- Updated the logging message when components are deactivated (#943) ### v0.21.3 - Fix no-buses bug in `calc_connected_components` (#933) diff --git a/src/core/data.jl b/src/core/data.jl index c87e2360..9adc6584 100644 --- a/src/core/data.jl +++ b/src/core/data.jl @@ -2329,7 +2329,7 @@ function _deactivate_isolated_components!(data::Dict{String,<:Any}) active_strg_count = sum(cc_active_strg) if (active_load_count == 0 && active_shunt_count == 0 && active_strg_count == 0) || active_gen_count == 0 - Memento.info(_LOGGER, "deactivating connected component $(cc) due to isolation without generation, load or storage") + Memento.info(_LOGGER, "deactivating connected component $(cc) due to isolation without (a) generation or (b) load, storage, or shunts") for i in cc buses[i]["bus_type"] = 4 end