Now when I create a NestedBlockState afresh, I get the following error:
import numpy as np
import pickle
import graph_tool.all as gt
gt.seed_rng(100)
np.random.seed(100)
with open(f'bs.pkl', 'rb') as f:
bs = pickle.load(f)
with open(f'graph.pkl', 'rb') as f:
g = pickle.load(f)
pmode = gt.ModeClusterState(bs, nested=True)
gt.mcmc_equilibrate(pmode, wait=1, mcmc_args=dict(niter=1, beta=np.inf))
state = gt.NestedBlockState(g, bs=pmode.bs[0])
ERROR:
TypeError: _vt_copy() got an unexpected keyword argument 'value_type'