@@ -402,7 +402,7 @@ def get_fixed(self, arr, edge):
402
402
return arr * liks
403
403
404
404
def scale_geometric (self , fraction , value ):
405
- return value ** fraction
405
+ return value ** fraction
406
406
407
407
408
408
class LogLikelihoods (Likelihoods ):
@@ -686,7 +686,7 @@ def inside_pass(self, *, normalize=True, cache_inside=False, progress=None):
686
686
"dangling nodes: please simplify it"
687
687
)
688
688
daughter_val = self .lik .scale_geometric (
689
- spanfrac , self .lik .make_lower_tri (inside [ edge . child ] )
689
+ spanfrac , self .lik .make_lower_tri (inside_values )
690
690
)
691
691
edge_lik = self .lik .get_inside (daughter_val , edge )
692
692
val = self .lik .combine (val , edge_lik )
@@ -1080,8 +1080,6 @@ def get_dates(
1080
1080
1081
1081
:return: tuple(mn_post, posterior, timepoints, eps, nodes_to_date)
1082
1082
"""
1083
- fixed_nodes = set (tree_sequence .samples ())
1084
-
1085
1083
# Default to not creating approximate priors unless ts has > 1000 samples
1086
1084
approx_priors = False
1087
1085
if tree_sequence .num_samples > 1000 :
@@ -1109,6 +1107,8 @@ def get_dates(
1109
1107
)
1110
1108
priors = priors
1111
1109
1110
+ fixed_nodes = set (priors .fixed_node_ids ())
1111
+
1112
1112
if probability_space != base .LOG :
1113
1113
liklhd = Likelihoods (
1114
1114
tree_sequence ,
0 commit comments