Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WuShichao committed Feb 20, 2024
1 parent 3852a04 commit 7597289
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pycbc/inference/models/hierarchical.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ def __init__(self, variable_params, submodels, **kwargs):
self.__extra_stats += self.extra_stats_map[lbl]
# also make sure the model's sampling transforms and waveform
# transforms are not set, as these are handled by the hierarchical
# model, except for `joint_primary_marginalized` model
# model, except for `joint_primary_marginalized` model, because
# this specific model needs to allow its submodels to handle
# transform with prefix on the submodel's level
if self.name != "joint_primary_marginalized":
if model.sampling_transforms is not None:
raise ValueError("Model {} has sampling transforms "
Expand Down

0 comments on commit 7597289

Please sign in to comment.