From 49f86724aafb3b86b7d110f57a978ea312c7a357 Mon Sep 17 00:00:00 2001 From: Thomas Colthurst Date: Tue, 13 Aug 2024 17:00:01 +0000 Subject: [PATCH] Respond to reviewer comment --- cxx/clean_relation.hh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cxx/clean_relation.hh b/cxx/clean_relation.hh index e9e1757..a4256b6 100644 --- a/cxx/clean_relation.hh +++ b/cxx/clean_relation.hh @@ -391,12 +391,8 @@ class CleanRelation : public Relation { void set_cluster_assignment_gibbs(const Domain& domain, const T_item& item, int table, std::mt19937* prng) { - int table_current = domain.get_cluster_assignment(item); - if (table == table_current) { - printf("table %d == table_current in set_cluster_assignment_gibbs\n", - table); - assert(false); - } + [[maybe_unused]] int table_current = domain.get_cluster_assignment(item); + assert(table != table_current); for (const T_items& items : data_r.at(domain.name).at(item)) { ValueType x = data.at(items); // Remove from current cluster.