Skip to content

Commit a462d34

Browse files
committed
remove unnessary if-condition
1 parent 220eca2 commit a462d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bilby/core/prior/dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ def rescale(self, keys, theta):
885885
names = set(self[key].dist.names)
886886
if distname not in joint:
887887
joint[distname] = {key}
888-
elif isinstance(self[key], JointPrior):
888+
else:
889889
joint[distname].add(key)
890890
# only when all names have been rescaled, we can set the values
891891
# we use sets because the order does not matter here

0 commit comments

Comments
 (0)