def pore_to_pore(geometry, **kwargs):
    r"""
    Calculates throat vector as straight path between connected pores.

    Parameters
    ----------
    geometry : OpenPNM Geometry object
        The object containing the geometrical properties of the throats

    Notes
    -----
    There is an important impicit assumption here: the positive direction is
    taken as the direction from the pore with the lower index to the higher.
    This corresponds to the pores in the 1st and 2nd columns of the
    'throat.conns' array as stored on the etwork.
    """
    network = geometry._net
    throats = network.throats(geometry.name)
    pores = network.find_connected_pores(throats, flatten=False)
    C0 = network['pore.coords'][pores, 0]
    C1 = network['pore.coords'][pores, 1]
    V = C1 - C0
    L = _sp.array(_sp.sqrt(_sp.sum(V[:, :]**2, axis=1)), ndmin=1)
    value = _sp.array(L, ndmin=2).T/V
    return value
dataset/ETHPy150Open PMEAL/OpenPNM/OpenPNM/Geometry/models/throat_vector.py/pore_to_pore/swapped operands of `/`