Numpy 1.12 dropped support for indexing with floats: https://docs.scipy.org/doc/numpy-1.12.0/release.html#deprecationwarning-to-error I think malis does this in seg_to_affgraph... I'll provide more details later