Skip to content

Commit

Permalink
get_updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LegrandNico committed Dec 16, 2024
1 parent 24de3b9 commit becede4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyhgf/utils/get_update_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from pyhgf.updates.posterior.continuous import (
continuous_node_posterior_update,
continuous_node_posterior_update_ehgf,
continuous_node_posterior_update_unbounded,
)
from pyhgf.updates.prediction.binary import binary_state_node_prediction
from pyhgf.updates.prediction.continuous import continuous_node_prediction
Expand Down Expand Up @@ -135,7 +136,12 @@ def get_update_sequence(
if all([i not in nodes_without_prediction_error for i in all_children]):
no_update = False
if network.edges[idx].node_type == 2:
if update_type == "eHGF":
if update_type == "unbounded":
if network.edges[idx].volatility_children is not None:
update_fn = continuous_node_posterior_update_unbounded
else:
update_fn = continuous_node_posterior_update
elif update_type == "eHGF":
if network.edges[idx].volatility_children is not None:
update_fn = continuous_node_posterior_update_ehgf
else:
Expand Down

0 comments on commit becede4

Please sign in to comment.