Skip to content
Snippets Groups Projects
Commit ba1ee37a authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

bugfix: index clusters by mcID instead of ID

parent 01be5795
No related branches found
No related tags found
1 merge request!299Resolve "Segfault on MatchClusters"
...@@ -168,7 +168,14 @@ private: ...@@ -168,7 +168,14 @@ private:
for (const auto& cluster_handle : cluster_collections) { for (const auto& cluster_handle : cluster_collections) {
const auto& clusters = *(cluster_handle->get()); const auto& clusters = *(cluster_handle->get());
for (const auto& cluster : clusters) { for (const auto& cluster : clusters) {
matched[cluster.ID()] = cluster; if (msgLevel(MSG::VERBOSE)) {
const bool duplicate = matched.count(cluster.mcID());
verbose() << "Found cluster: " << cluster.ID() << " with mcID " << cluster.mcID() << endmsg;
if (duplicate) {
verbose() << " --> WARNING: this is a duplicate mcID, overwriting previous cluster" << endmsg;
}
}
matched[cluster.mcID()] = cluster;
} }
} }
return matched; return matched;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment