From 46f62138a52138fb96c1feb9627c1e2e71168f67 Mon Sep 17 00:00:00 2001 From: Neil Marchant Date: Fri, 24 Jun 2022 12:35:02 +1000 Subject: [PATCH] Fix failure to update EP parameters when one is fixed --- src/clust_params.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clust_params.cpp b/src/clust_params.cpp index f795457..870df03 100644 --- a/src/clust_params.cpp +++ b/src/clust_params.cpp @@ -73,7 +73,7 @@ void GenCouponClustParams::update(Links &links) { void PitmanYorClustParams::update(Links &links) { - if (!d_prior_.has_value() || !alpha_prior_.has_value()) { + if (!d_prior_.has_value() && !alpha_prior_.has_value()) { // Nothing to update return; }