-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor the add nodes methods (#251)
- Move the add_nodes method into a separate file and split the different node types into separate functions. - Create separate functions for tasks that are shared across nodes. - Remove the generic-input type. This will be replaced by custom nodes in a forthcoming PR.
- Loading branch information
1 parent
c4ab757
commit eb05544
Showing
15 changed files
with
612 additions
and
595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
from .add_nodes import ( | ||
add_binary_state, | ||
add_categorical_state, | ||
add_continuous_state, | ||
add_dp_state, | ||
add_ef_state, | ||
get_couplings, | ||
insert_nodes, | ||
update_parameters, | ||
) | ||
from .network import Network | ||
|
||
from .hgf import HGF # isort: skip | ||
|
||
__all__ = ["HGF", "Network"] | ||
__all__ = [ | ||
"HGF", | ||
"Network", | ||
"add_nodes", | ||
"add_continuous_state", | ||
"add_binary_state", | ||
"add_ef_state", | ||
"add_categorical_state", | ||
"add_dp_state", | ||
"get_couplings", | ||
"update_parameters", | ||
"insert_nodes", | ||
] |
Oops, something went wrong.