1 Oct
2019
1 Oct
'19
6:02 p.m.
Am 01.10.19 um 19:10 schrieb JuanEcheverria:
So How can I save the blockstate of the first algorithm, so that I can reproduce it after saving and reloading a graph (or in a different computer, or python instance)?
You can use pickle to save a BlockState to disk: https://docs.python.org/3/library/pickle.html You can also get the group memberships as a property map (via BlockState.get_blocks()) and store that as an internal property map. Best, Tiago -- Tiago de Paula Peixoto <t.peixoto@bath.ac.uk> -- Tiago de Paula Peixoto <tiago@skewed.de>