Skip to content

Commit db58c4f

Browse files
authored
More accurate message when deactivating isolated components (#943)
1 parent 3473bc2 commit db58c4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PowerModels.jl Change Log
22
=========================
33

44
### Staged
5-
- nothing
5+
- Updated the logging message when components are deactivated (#943)
66

77
### v0.21.3
88
- Fix no-buses bug in `calc_connected_components` (#933)

src/core/data.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2329,7 +2329,7 @@ function _deactivate_isolated_components!(data::Dict{String,<:Any})
23292329
active_strg_count = sum(cc_active_strg)
23302330

23312331
if (active_load_count == 0 && active_shunt_count == 0 && active_strg_count == 0) || active_gen_count == 0
2332-
Memento.info(_LOGGER, "deactivating connected component $(cc) due to isolation without generation, load or storage")
2332+
Memento.info(_LOGGER, "deactivating connected component $(cc) due to isolation without (a) generation or (b) load, storage, or shunts")
23332333
for i in cc
23342334
buses[i]["bus_type"] = 4
23352335
end

0 commit comments

Comments
 (0)