Skip to content

Commit

Permalink
exclude empty string from heat/cool system names check for overassign…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
shieldo committed Feb 27, 2025
1 parent 82edd0e commit d53fc16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/corpus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3542,6 +3542,7 @@ fn zone_from_input(
let h_overassigned: Vec<String> = HashSet::from_iter(heat_system_names.clone().into_iter())
.intersection(&zone_h_name_set)
.cloned()
.filter(|name| name != "")
.collect_vec();
if !h_overassigned.is_empty() {
bail!(
Expand All @@ -3564,6 +3565,7 @@ fn zone_from_input(
let c_overassigned: Vec<String> = HashSet::from_iter(cool_system_names.clone().into_iter())
.intersection(&zone_c_name_set)
.cloned()
.filter(|name| name != "")
.collect_vec();
if !c_overassigned.is_empty() {
bail!(
Expand Down

0 comments on commit d53fc16

Please sign in to comment.