ADicksonLab / wepy

Weighted Ensemble simulation framework in Python
https://adicksonlab.github.io/wepy/index.html
MIT License
48 stars 20 forks source link

set_nodes_field in MacroStateNetwork #75

Open BK33333 opened 1 year ago

BK33333 commented 1 year ago

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'])

salotz commented 12 months ago

Probably this: https://adicksonlab.github.io/wepy/_api/wepy.analysis.network.html#wepy.analysis.network.BaseMacroStateNetwork.set_nodes_attribute