def cable_length(self):
    """
    Returns cable length of connected skeleton vertices in the same
    metric that this volume uses (typically nanometers).
    """
    v1 = self.vertices[self.edges[:,0]]
    v2 = self.vertices[self.edges[:,1]]

    delta = (v2 - v1)
    delta *= delta
    dist = np.sum(delta, axis=1)
    dist = np.sqrt(dist)

    return np.sum(dist)
def cable_length ( self ) : v1 = self . vertices [ self . edges [ : , 0 ] ] v2 = self . vertices [ self . edges [ : , 1 ] ] delta = ( v2 - v1 ) delta *= delta dist = np . sum ( delta , axis = 1 ) dist = np . sqrt ( dist ) return np . sum ( dist )
Returns cable length of connected skeleton vertices in the same
    metric that this volume uses (typically nanometers).