@@ -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 )
@@ -1081,8 +1081,6 @@ def get_dates(
1081
1081
1082
1082
:return: tuple(mn_post, posterior, timepoints, eps, nodes_to_date)
1083
1083
"""
1084
- fixed_nodes = set (tree_sequence .samples ())
1085
-
1086
1084
# Default to not creating approximate priors unless ts has > 1000 samples
1087
1085
approx_priors = False
1088
1086
if tree_sequence .num_samples > 1000 :
@@ -1110,6 +1108,8 @@ def get_dates(
1110
1108
)
1111
1109
priors = priors
1112
1110
1111
+ fixed_nodes = set (priors .fixed_node_ids ())
1112
+
1113
1113
if probability_space != base .LOG :
1114
1114
liklhd = Likelihoods (
1115
1115
tree_sequence ,
0 commit comments