Skip to content

Commit

Permalink
Respond to reviewer comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasColthurst committed Aug 13, 2024
1 parent 61d5b19 commit 49f8672
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cxx/clean_relation.hh
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,8 @@ class CleanRelation : public Relation<T> {

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.
Expand Down

0 comments on commit 49f8672

Please sign in to comment.