Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_nodes_field in MacroStateNetwork #75

Open
BK33333 opened this issue Jul 7, 2023 · 1 comment
Open

set_nodes_field in MacroStateNetwork #75

BK33333 opened this issue Jul 7, 2023 · 1 comment

Comments

@BK33333
Copy link

BK33333 commented Jul 7, 2023

in the tutorials for weights/free energy of macrostates the below code is used . however there is no set_nodes_field in MacroStateNetwork
has this been replaced with something else?

compute the weights of the macrostates and set them as node attributes

random_state_net.set_nodes_field('Weight', random_state_net.macrostate_weights())

get the weight of a node

print(random_state_net.graph.node[39]['Weight'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants