OverlapBlockState's draw method fails on object has no attribute '_state'
I'm trying to visualize an overlapping blockmodel's output:
blk = gt.inference.minimize_blockmodel_dl(g, overlap=True, deg_corr=True, layers=True, B_min=2, state_args=dict(ec=gt_weights, layers=False))
blk.draw()
and it fails with:
AttributeErrorTraceback (most recent call last)
<ipython-input-28-168ce19f4bee> in <module>()
----> 1 blk.draw()
/usr/lib/python2.7/dist-packages/graph_tool/inference/layered_blockmodel.pyc in draw(self, **kwargs)
899 """
900
--> 901 self.agg_state.draw(**kwargs)
902
903
/usr/lib/python2.7/dist-packages/graph_tool/inference/overlap_blockmodel.pyc in draw(self, **kwargs)
670 draws the state of the graph as colors on the vertices and edges."""
671
--> 672 bv, bc_in, bc_out, bc_total = self.get_overlap_blocks()
673 if self.deg_corr:
674 pie_fractions = bc_total.copy("vector<double>")
/usr/lib/python2.7/dist-packages/graph_tool/inference/overlap_blockmodel.pyc in get_overlap_blocks(self)
399 bc_out = self.base_g.new_vertex_property("vector<int>")
400 bc_total = self.base_g.new_vertex_property("vector<int>")
--> 401 self._state.get_bv_overlap(self.base_g._Graph__graph,
402 _prop("v", self.base_g, bv),
403 _prop("v", self.base_g, bc_in),
AttributeError: 'OverlapBlockState' object has no attribute '_state'
I'm using graphtool 2.22 from the skewed.de channel in a ubuntu xenial docker image.