14 Apr
2021
14 Apr
'21
7:12 a.m.
Hi Tiago,
My guess here is that joblib is using pickle in the background, which ended up copying the whole states and their graphs, making the property maps incompatible. Try changing the last line to:
Reading the joblib documentation, I understand it uses cloudpickle in place of pickle as default (https://joblib.readthedocs.io/en/latest/auto_examples/serialization_and_wrap...).
print(gt.modularity(selected.g, selected.get_blocks()))
That works, thank. As a matter of fact this works as well pmode = gt.PartitionModeState([x.get_blocks().a for x in pstates], converge=True) I guess because every entry in the pstates list owns its own graph. Thanks! d