Skip to content

Commit 06f42a5

Browse files
committed
bug fix in applying template alphas when sampling likelihoods with foreground parameters
1 parent 33b319b commit 06f42a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

xfaster/xfaster_class.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2261,7 +2261,12 @@ def get_masked_data(
22612261
template_specs = self.specs
22622262

22632263
# ensure dictionary
2264-
if template_alpha is None or null_run or template_type is None:
2264+
if (
2265+
template_alpha is None
2266+
or null_run
2267+
or (update_template and self.template_type is None)
2268+
or (not update_template and template_type is None)
2269+
):
22652270
template_alpha = OrderedDict()
22662271
else:
22672272
# ensure tagged by original tags

0 commit comments

Comments
 (0)