We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da9135f commit fa1b250Copy full SHA for fa1b250
src/main/scala/edu/ie3/osmogrid/lv/region_coordinator/OsmoGridModelPartitioner.scala
@@ -109,6 +109,11 @@ object OsmoGridModelPartitioner {
109
case EntityAllocationStrategy.AssignByMax =>
110
entityVotes
111
.maxByOption(_._2)
112
+ .foreach { case (areaKey, voteCount) =>
113
+ if voteCount == 0 then
114
+ logger warn s"Entity ${enhancedEntity.entity} is not covered by any given area " +
115
+ s"(but is assigned to area $areaKey nonetheless)"
116
+ }
117
.map(_._1)
118
.map(Iterable.single)
119
.getOrElse(Iterable.empty)
0 commit comments