Skip to content

Commit 18d7cc4

Browse files
committed
mpl: throw an error if setClustersLocations is called with the incorrect number of clusters
Signed-off-by: João Mai <[email protected]>
1 parent b3d0807 commit 18d7cc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mpl/src/SACoreSoftMacro.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,10 @@ void SACoreSoftMacro::setClustersLocations(
10201020
std::vector<std::pair<float, float>>& clusters_locations)
10211021
{
10221022
if (clusters_locations.size() != pos_seq_.size()) {
1023-
return;
1023+
logger_->error(MPL,
1024+
52,
1025+
"setClustersLocation called with a different numbers of "
1026+
"clusters of that in the sequence pair");
10241027
}
10251028

10261029
for (int& id : pos_seq_) {

0 commit comments

Comments
 (0)