Skip to content

einsum test failures on Python 3.4 #3795

Closed

Description

@jakirkham

Seeing some test failures with einsum on Python 3.4. Have included them below.

Test failures:
___________________________________________________________ test_einsum_broadcasting_contraction ____________________________________________________________

    def test_einsum_broadcasting_contraction():
        a = np.random.rand(1, 5, 4)
        b = np.random.rand(4, 6)
        c = np.random.rand(5, 6)
        d = np.random.rand(10)
    
        d_a = da.from_array(a, chunks=(1, (2, 3), (2, 2)))
        d_b = da.from_array(b, chunks=((2, 2), (4, 2)))
        d_c = da.from_array(c, chunks=((2, 3), (4, 2)))
        d_d = da.from_array(d, chunks=((7, 3)))
    
        np_res = np.einsum('ijk,kl,jl', a, b, c)
        da_res = da.einsum('ijk,kl,jl', d_a, d_b, d_c)
        assert_eq(np_res, da_res)
    
        mul_res = da_res * d
    
>       np_res = np.einsum('ijk,kl,jl,i->i', a, b, c, d)

dask/array/tests/test_routines.py:1467: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../.conda/envs/dask_py34/lib/python3.4/site-packages/numpy/core/einsumfunc.py:1087: in einsum
    einsum_call=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

operands = [array([[[0.21896516, 0.54235657, 0.64430597, 0.69378676],
        [0.09797683, 0.87995531, 0.62203264, 0.47296449],
 ...7, 0.68632858, 0.19246735, 0.95335082, 0.18999954,
       0.21403576, 0.00194334, 0.60966485, 0.11820087, 0.38049336])]
kwargs = {}, unknown_kwargs = [], path_type = 'greedy', memory_limit = None, einsum_call_arg = True, input_subscripts = 'ijk,kl,jl,i', output_subscript = 'i'
subscripts = 'ijk,kl,jl,i->i', input_list = ['ijk', 'kl', 'jl', 'i'], input_sets = [set(['i', 'j', 'k']), set(['k', 'l']), set(['j', 'l']), set(['i'])]
output_set = set(['i'])

    def einsum_path(*operands, **kwargs):
        """
        einsum_path(subscripts, *operands, optimize='greedy')
    
        Evaluates the lowest cost contraction order for an einsum expression by
        considering the creation of intermediate arrays.
    
        Parameters
        ----------
        subscripts : str
            Specifies the subscripts for summation.
        *operands : list of array_like
            These are the arrays for the operation.
        optimize : {bool, list, tuple, 'greedy', 'optimal'}
            Choose the type of path. If a tuple is provided, the second argument is
            assumed to be the maximum intermediate size created. If only a single
            argument is provided the largest input or output array size is used
            as a maximum intermediate size.
    
            * if a list is given that starts with ``einsum_path``, uses this as the
              contraction path
            * if False no optimization is taken
            * if True defaults to the 'greedy' algorithm
            * 'optimal' An algorithm that combinatorially explores all possible
              ways of contracting the listed tensors and choosest the least costly
              path. Scales exponentially with the number of terms in the
              contraction.
            * 'greedy' An algorithm that chooses the best pair contraction
              at each step. Effectively, this algorithm searches the largest inner,
              Hadamard, and then outer products at each step. Scales cubically with
              the number of terms in the contraction. Equivalent to the 'optimal'
              path for most contractions.
    
            Default is 'greedy'.
    
        Returns
        -------
        path : list of tuples
            A list representation of the einsum path.
        string_repr : str
            A printable representation of the einsum path.
    
        Notes
        -----
        The resulting path indicates which terms of the input contraction should be
        contracted first, the result of this contraction is then appended to the
        end of the contraction list. This list can then be iterated over until all
        intermediate contractions are complete.
    
        See Also
        --------
        einsum, linalg.multi_dot
    
        Examples
        --------
    
        We can begin with a chain dot example. In this case, it is optimal to
        contract the ``b`` and ``c`` tensors first as reprsented by the first
        element of the path ``(1, 2)``. The resulting tensor is added to the end
        of the contraction and the remaining contraction ``(0, 1)`` is then
        completed.
    
        >>> a = np.random.rand(2, 2)
        >>> b = np.random.rand(2, 5)
        >>> c = np.random.rand(5, 2)
        >>> path_info = np.einsum_path('ij,jk,kl->il', a, b, c, optimize='greedy')
        >>> print(path_info[0])
        ['einsum_path', (1, 2), (0, 1)]
        >>> print(path_info[1])
          Complete contraction:  ij,jk,kl->il
                 Naive scaling:  4
             Optimized scaling:  3
              Naive FLOP count:  1.600e+02
          Optimized FLOP count:  5.600e+01
           Theoretical speedup:  2.857
          Largest intermediate:  4.000e+00 elements
        -------------------------------------------------------------------------
        scaling                  current                                remaining
        -------------------------------------------------------------------------
           3                   kl,jk->jl                                ij,jl->il
           3                   jl,ij->il                                   il->il
    
    
        A more complex index transformation example.
    
        >>> I = np.random.rand(10, 10, 10, 10)
        >>> C = np.random.rand(10, 10)
        >>> path_info = np.einsum_path('ea,fb,abcd,gc,hd->efgh', C, C, I, C, C,
                                       optimize='greedy')
    
        >>> print(path_info[0])
        ['einsum_path', (0, 2), (0, 3), (0, 2), (0, 1)]
        >>> print(path_info[1])
          Complete contraction:  ea,fb,abcd,gc,hd->efgh
                 Naive scaling:  8
             Optimized scaling:  5
              Naive FLOP count:  8.000e+08
          Optimized FLOP count:  8.000e+05
           Theoretical speedup:  1000.000
          Largest intermediate:  1.000e+04 elements
        --------------------------------------------------------------------------
        scaling                  current                                remaining
        --------------------------------------------------------------------------
           5               abcd,ea->bcde                      fb,gc,hd,bcde->efgh
           5               bcde,fb->cdef                         gc,hd,cdef->efgh
           5               cdef,gc->defg                            hd,defg->efgh
           5               defg,hd->efgh                               efgh->efgh
        """
    
        # Make sure all keywords are valid
        valid_contract_kwargs = ['optimize', 'einsum_call']
        unknown_kwargs = [k for (k, v) in kwargs.items() if k
                          not in valid_contract_kwargs]
        if len(unknown_kwargs):
            raise TypeError("Did not understand the following kwargs:"
                            " %s" % unknown_kwargs)
    
        # Figure out what the path really is
        path_type = kwargs.pop('optimize', True)
        if path_type is True:
            path_type = 'greedy'
        if path_type is None:
            path_type = False
    
        memory_limit = None
    
        # No optimization or a named path algorithm
        if (path_type is False) or isinstance(path_type, str):
            pass
    
        # Given an explicit path
        elif len(path_type) and (path_type[0] == 'einsum_path'):
            pass
    
        # Path tuple with memory limit
        elif ((len(path_type) == 2) and isinstance(path_type[0], str) and
                isinstance(path_type[1], (int, float))):
            memory_limit = int(path_type[1])
            path_type = path_type[0]
    
        else:
            raise TypeError("Did not understand the path: %s" % str(path_type))
    
        # Hidden option, only einsum should call this
        einsum_call_arg = kwargs.pop("einsum_call", False)
    
        # Python side parsing
        input_subscripts, output_subscript, operands = _parse_einsum_input(operands)
        subscripts = input_subscripts + '->' + output_subscript
    
        # Build a few useful list and sets
        input_list = input_subscripts.split(',')
        input_sets = [set(x) for x in input_list]
        output_set = set(output_subscript)
        indices = set(input_subscripts.replace(',', ''))
    
        # Get length of each unique dimension and ensure all dimensions are correct
        dimension_dict = {}
        for tnum, term in enumerate(input_list):
            sh = operands[tnum].shape
            if len(sh) != len(term):
                raise ValueError("Einstein sum subscript %s does not contain the "
                                 "correct number of indices for operand %d.",
                                 input_subscripts[tnum], tnum)
            for cnum, char in enumerate(term):
                dim = sh[cnum]
                if char in dimension_dict.keys():
                    if dimension_dict[char] != dim:
                        raise ValueError("Size of label '%s' for operand %d does "
>                                        "not match previous terms.", char, tnum)
E                       ValueError: ("Size of label '%s' for operand %d does not match previous terms.", 'i', 3)

../.conda/envs/dask_py34/lib/python3.4/site-packages/numpy/core/einsumfunc.py:710: ValueError
___________________________________________________________ test_einsum_broadcasting_contraction2 ___________________________________________________________

    def test_einsum_broadcasting_contraction2():
        a = np.random.rand(1, 1, 5, 4)
        b = np.random.rand(4, 6)
        c = np.random.rand(5, 6)
        d = np.random.rand(7, 7)
    
        d_a = da.from_array(a, chunks=(1, 1, (2, 3), (2, 2)))
        d_b = da.from_array(b, chunks=((2, 2), (4, 2)))
        d_c = da.from_array(c, chunks=((2, 3), (4, 2)))
        d_d = da.from_array(d, chunks=((7, 3)))
    
        np_res = np.einsum('abjk,kl,jl', a, b, c)
        da_res = da.einsum('abjk,kl,jl', d_a, d_b, d_c)
        assert_eq(np_res, da_res)
    
        mul_res = da_res * d
    
>       np_res = np.einsum('abjk,kl,jl,ab->ab', a, b, c, d)

dask/array/tests/test_routines.py:1490: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../.conda/envs/dask_py34/lib/python3.4/site-packages/numpy/core/einsumfunc.py:1087: in einsum
    einsum_call=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

operands = [array([[[[0.6767759 , 0.64363956, 0.28144268, 0.54753557],
         [0.42871208, 0.17989484, 0.76650161, 0.65708088],...51, 0.88601117],
       [0.72648713, 0.31051928, 0.66347603, 0.58620714, 0.89802092,
        0.33901209, 0.71366011]])]
kwargs = {}, unknown_kwargs = [], path_type = 'greedy', memory_limit = None, einsum_call_arg = True, input_subscripts = 'abjk,kl,jl,ab'
output_subscript = 'ab', subscripts = 'abjk,kl,jl,ab->ab', input_list = ['abjk', 'kl', 'jl', 'ab']
input_sets = [set(['a', 'b', 'j', 'k']), set(['k', 'l']), set(['j', 'l']), set(['a', 'b'])], output_set = set(['a', 'b'])

    def einsum_path(*operands, **kwargs):
        """
        einsum_path(subscripts, *operands, optimize='greedy')
    
        Evaluates the lowest cost contraction order for an einsum expression by
        considering the creation of intermediate arrays.
    
        Parameters
        ----------
        subscripts : str
            Specifies the subscripts for summation.
        *operands : list of array_like
            These are the arrays for the operation.
        optimize : {bool, list, tuple, 'greedy', 'optimal'}
            Choose the type of path. If a tuple is provided, the second argument is
            assumed to be the maximum intermediate size created. If only a single
            argument is provided the largest input or output array size is used
            as a maximum intermediate size.
    
            * if a list is given that starts with ``einsum_path``, uses this as the
              contraction path
            * if False no optimization is taken
            * if True defaults to the 'greedy' algorithm
            * 'optimal' An algorithm that combinatorially explores all possible
              ways of contracting the listed tensors and choosest the least costly
              path. Scales exponentially with the number of terms in the
              contraction.
            * 'greedy' An algorithm that chooses the best pair contraction
              at each step. Effectively, this algorithm searches the largest inner,
              Hadamard, and then outer products at each step. Scales cubically with
              the number of terms in the contraction. Equivalent to the 'optimal'
              path for most contractions.
    
            Default is 'greedy'.
    
        Returns
        -------
        path : list of tuples
            A list representation of the einsum path.
        string_repr : str
            A printable representation of the einsum path.
    
        Notes
        -----
        The resulting path indicates which terms of the input contraction should be
        contracted first, the result of this contraction is then appended to the
        end of the contraction list. This list can then be iterated over until all
        intermediate contractions are complete.
    
        See Also
        --------
        einsum, linalg.multi_dot
    
        Examples
        --------
    
        We can begin with a chain dot example. In this case, it is optimal to
        contract the ``b`` and ``c`` tensors first as reprsented by the first
        element of the path ``(1, 2)``. The resulting tensor is added to the end
        of the contraction and the remaining contraction ``(0, 1)`` is then
        completed.
    
        >>> a = np.random.rand(2, 2)
        >>> b = np.random.rand(2, 5)
        >>> c = np.random.rand(5, 2)
        >>> path_info = np.einsum_path('ij,jk,kl->il', a, b, c, optimize='greedy')
        >>> print(path_info[0])
        ['einsum_path', (1, 2), (0, 1)]
        >>> print(path_info[1])
          Complete contraction:  ij,jk,kl->il
                 Naive scaling:  4
             Optimized scaling:  3
              Naive FLOP count:  1.600e+02
          Optimized FLOP count:  5.600e+01
           Theoretical speedup:  2.857
          Largest intermediate:  4.000e+00 elements
        -------------------------------------------------------------------------
        scaling                  current                                remaining
        -------------------------------------------------------------------------
           3                   kl,jk->jl                                ij,jl->il
           3                   jl,ij->il                                   il->il
    
    
        A more complex index transformation example.
    
        >>> I = np.random.rand(10, 10, 10, 10)
        >>> C = np.random.rand(10, 10)
        >>> path_info = np.einsum_path('ea,fb,abcd,gc,hd->efgh', C, C, I, C, C,
                                       optimize='greedy')
    
        >>> print(path_info[0])
        ['einsum_path', (0, 2), (0, 3), (0, 2), (0, 1)]
        >>> print(path_info[1])
          Complete contraction:  ea,fb,abcd,gc,hd->efgh
                 Naive scaling:  8
             Optimized scaling:  5
              Naive FLOP count:  8.000e+08
          Optimized FLOP count:  8.000e+05
           Theoretical speedup:  1000.000
          Largest intermediate:  1.000e+04 elements
        --------------------------------------------------------------------------
        scaling                  current                                remaining
        --------------------------------------------------------------------------
           5               abcd,ea->bcde                      fb,gc,hd,bcde->efgh
           5               bcde,fb->cdef                         gc,hd,cdef->efgh
           5               cdef,gc->defg                            hd,defg->efgh
           5               defg,hd->efgh                               efgh->efgh
        """
    
        # Make sure all keywords are valid
        valid_contract_kwargs = ['optimize', 'einsum_call']
        unknown_kwargs = [k for (k, v) in kwargs.items() if k
                          not in valid_contract_kwargs]
        if len(unknown_kwargs):
            raise TypeError("Did not understand the following kwargs:"
                            " %s" % unknown_kwargs)
    
        # Figure out what the path really is
        path_type = kwargs.pop('optimize', True)
        if path_type is True:
            path_type = 'greedy'
        if path_type is None:
            path_type = False
    
        memory_limit = None
    
        # No optimization or a named path algorithm
        if (path_type is False) or isinstance(path_type, str):
            pass
    
        # Given an explicit path
        elif len(path_type) and (path_type[0] == 'einsum_path'):
            pass
    
        # Path tuple with memory limit
        elif ((len(path_type) == 2) and isinstance(path_type[0], str) and
                isinstance(path_type[1], (int, float))):
            memory_limit = int(path_type[1])
            path_type = path_type[0]
    
        else:
            raise TypeError("Did not understand the path: %s" % str(path_type))
    
        # Hidden option, only einsum should call this
        einsum_call_arg = kwargs.pop("einsum_call", False)
    
        # Python side parsing
        input_subscripts, output_subscript, operands = _parse_einsum_input(operands)
        subscripts = input_subscripts + '->' + output_subscript
    
        # Build a few useful list and sets
        input_list = input_subscripts.split(',')
        input_sets = [set(x) for x in input_list]
        output_set = set(output_subscript)
        indices = set(input_subscripts.replace(',', ''))
    
        # Get length of each unique dimension and ensure all dimensions are correct
        dimension_dict = {}
        for tnum, term in enumerate(input_list):
            sh = operands[tnum].shape
            if len(sh) != len(term):
                raise ValueError("Einstein sum subscript %s does not contain the "
                                 "correct number of indices for operand %d.",
                                 input_subscripts[tnum], tnum)
            for cnum, char in enumerate(term):
                dim = sh[cnum]
                if char in dimension_dict.keys():
                    if dimension_dict[char] != dim:
                        raise ValueError("Size of label '%s' for operand %d does "
>                                        "not match previous terms.", char, tnum)
E                       ValueError: ("Size of label '%s' for operand %d does not match previous terms.", 'a', 3)

../.conda/envs/dask_py34/lib/python3.4/site-packages/numpy/core/einsumfunc.py:710: ValueError
___________________________________________________________ test_einsum_broadcasting_contraction3 ___________________________________________________________

    def test_einsum_broadcasting_contraction3():
        a = np.random.rand(1, 5, 4)
        b = np.random.rand(4, 1, 6)
        c = np.random.rand(5, 6)
        d = np.random.rand(7, 7)
    
        d_a = da.from_array(a, chunks=(1, (2, 3), (2, 2)))
        d_b = da.from_array(b, chunks=((2, 2), 1,  (4, 2)))
        d_c = da.from_array(c, chunks=((2, 3), (4, 2)))
        d_d = da.from_array(d, chunks=((7, 3)))
    
>       np_res = np.einsum('ajk,kbl,jl,ab->ab', a, b, c, d)

dask/array/tests/test_routines.py:1507: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../.conda/envs/dask_py34/lib/python3.4/site-packages/numpy/core/einsumfunc.py:1087: in einsum
    einsum_call=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

operands = [array([[[0.25033903, 0.87700736, 0.77815786, 0.27364354],
        [0.66287022, 0.03167114, 0.35652025, 0.82301197],
 ...99, 0.58202084],
       [0.28964616, 0.80798898, 0.85342957, 0.11570323, 0.63202273,
        0.78904703, 0.46014995]])]
kwargs = {}, unknown_kwargs = [], path_type = 'greedy', memory_limit = None, einsum_call_arg = True, input_subscripts = 'ajk,kbl,jl,ab'
output_subscript = 'ab', subscripts = 'ajk,kbl,jl,ab->ab', input_list = ['ajk', 'kbl', 'jl', 'ab']
input_sets = [set(['a', 'j', 'k']), set(['b', 'k', 'l']), set(['j', 'l']), set(['a', 'b'])], output_set = set(['a', 'b'])

    def einsum_path(*operands, **kwargs):
        """
        einsum_path(subscripts, *operands, optimize='greedy')
    
        Evaluates the lowest cost contraction order for an einsum expression by
        considering the creation of intermediate arrays.
    
        Parameters
        ----------
        subscripts : str
            Specifies the subscripts for summation.
        *operands : list of array_like
            These are the arrays for the operation.
        optimize : {bool, list, tuple, 'greedy', 'optimal'}
            Choose the type of path. If a tuple is provided, the second argument is
            assumed to be the maximum intermediate size created. If only a single
            argument is provided the largest input or output array size is used
            as a maximum intermediate size.
    
            * if a list is given that starts with ``einsum_path``, uses this as the
              contraction path
            * if False no optimization is taken
            * if True defaults to the 'greedy' algorithm
            * 'optimal' An algorithm that combinatorially explores all possible
              ways of contracting the listed tensors and choosest the least costly
              path. Scales exponentially with the number of terms in the
              contraction.
            * 'greedy' An algorithm that chooses the best pair contraction
              at each step. Effectively, this algorithm searches the largest inner,
              Hadamard, and then outer products at each step. Scales cubically with
              the number of terms in the contraction. Equivalent to the 'optimal'
              path for most contractions.
    
            Default is 'greedy'.
    
        Returns
        -------
        path : list of tuples
            A list representation of the einsum path.
        string_repr : str
            A printable representation of the einsum path.
    
        Notes
        -----
        The resulting path indicates which terms of the input contraction should be
        contracted first, the result of this contraction is then appended to the
        end of the contraction list. This list can then be iterated over until all
        intermediate contractions are complete.
    
        See Also
        --------
        einsum, linalg.multi_dot
    
        Examples
        --------
    
        We can begin with a chain dot example. In this case, it is optimal to
        contract the ``b`` and ``c`` tensors first as reprsented by the first
        element of the path ``(1, 2)``. The resulting tensor is added to the end
        of the contraction and the remaining contraction ``(0, 1)`` is then
        completed.
    
        >>> a = np.random.rand(2, 2)
        >>> b = np.random.rand(2, 5)
        >>> c = np.random.rand(5, 2)
        >>> path_info = np.einsum_path('ij,jk,kl->il', a, b, c, optimize='greedy')
        >>> print(path_info[0])
        ['einsum_path', (1, 2), (0, 1)]
        >>> print(path_info[1])
          Complete contraction:  ij,jk,kl->il
                 Naive scaling:  4
             Optimized scaling:  3
              Naive FLOP count:  1.600e+02
          Optimized FLOP count:  5.600e+01
           Theoretical speedup:  2.857
          Largest intermediate:  4.000e+00 elements
        -------------------------------------------------------------------------
        scaling                  current                                remaining
        -------------------------------------------------------------------------
           3                   kl,jk->jl                                ij,jl->il
           3                   jl,ij->il                                   il->il
    
    
        A more complex index transformation example.
    
        >>> I = np.random.rand(10, 10, 10, 10)
        >>> C = np.random.rand(10, 10)
        >>> path_info = np.einsum_path('ea,fb,abcd,gc,hd->efgh', C, C, I, C, C,
                                       optimize='greedy')
    
        >>> print(path_info[0])
        ['einsum_path', (0, 2), (0, 3), (0, 2), (0, 1)]
        >>> print(path_info[1])
          Complete contraction:  ea,fb,abcd,gc,hd->efgh
                 Naive scaling:  8
             Optimized scaling:  5
              Naive FLOP count:  8.000e+08
          Optimized FLOP count:  8.000e+05
           Theoretical speedup:  1000.000
          Largest intermediate:  1.000e+04 elements
        --------------------------------------------------------------------------
        scaling                  current                                remaining
        --------------------------------------------------------------------------
           5               abcd,ea->bcde                      fb,gc,hd,bcde->efgh
           5               bcde,fb->cdef                         gc,hd,cdef->efgh
           5               cdef,gc->defg                            hd,defg->efgh
           5               defg,hd->efgh                               efgh->efgh
        """
    
        # Make sure all keywords are valid
        valid_contract_kwargs = ['optimize', 'einsum_call']
        unknown_kwargs = [k for (k, v) in kwargs.items() if k
                          not in valid_contract_kwargs]
        if len(unknown_kwargs):
            raise TypeError("Did not understand the following kwargs:"
                            " %s" % unknown_kwargs)
    
        # Figure out what the path really is
        path_type = kwargs.pop('optimize', True)
        if path_type is True:
            path_type = 'greedy'
        if path_type is None:
            path_type = False
    
        memory_limit = None
    
        # No optimization or a named path algorithm
        if (path_type is False) or isinstance(path_type, str):
            pass
    
        # Given an explicit path
        elif len(path_type) and (path_type[0] == 'einsum_path'):
            pass
    
        # Path tuple with memory limit
        elif ((len(path_type) == 2) and isinstance(path_type[0], str) and
                isinstance(path_type[1], (int, float))):
            memory_limit = int(path_type[1])
            path_type = path_type[0]
    
        else:
            raise TypeError("Did not understand the path: %s" % str(path_type))
    
        # Hidden option, only einsum should call this
        einsum_call_arg = kwargs.pop("einsum_call", False)
    
        # Python side parsing
        input_subscripts, output_subscript, operands = _parse_einsum_input(operands)
        subscripts = input_subscripts + '->' + output_subscript
    
        # Build a few useful list and sets
        input_list = input_subscripts.split(',')
        input_sets = [set(x) for x in input_list]
        output_set = set(output_subscript)
        indices = set(input_subscripts.replace(',', ''))
    
        # Get length of each unique dimension and ensure all dimensions are correct
        dimension_dict = {}
        for tnum, term in enumerate(input_list):
            sh = operands[tnum].shape
            if len(sh) != len(term):
                raise ValueError("Einstein sum subscript %s does not contain the "
                                 "correct number of indices for operand %d.",
                                 input_subscripts[tnum], tnum)
            for cnum, char in enumerate(term):
                dim = sh[cnum]
                if char in dimension_dict.keys():
                    if dimension_dict[char] != dim:
                        raise ValueError("Size of label '%s' for operand %d does "
>                                        "not match previous terms.", char, tnum)
E                       ValueError: ("Size of label '%s' for operand %d does not match previous terms.", 'a', 3)

../.conda/envs/dask_py34/lib/python3.4/site-packages/numpy/core/einsumfunc.py:710: ValueError
===================================================================== warnings summary ======================================================================
dask/array/tests/test_array_core.py::test_slice_with_floats
  /groups/dudman/home/kirkhamj/dask/dask/array/slicing.py:72: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
    elif np.issubdtype(index_array.dtype, float):

dask/array/tests/test_array_core.py::test_zero_slice_dtypes
  /groups/dudman/home/kirkhamj/dask/dask/array/slicing.py:72: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
    elif np.issubdtype(index_array.dtype, float):

dask/array/tests/test_creation.py::test_pad_udf[kwargs0]
  /groups/dudman/home/kirkhamj/dask/dask/array/core.py:690: UserWarning: The token= keyword to map_blocks has been moved to name=
    warnings.warn("The token= keyword to map_blocks has been moved to name=")

dask/array/tests/test_creation.py::test_pad_udf[kwargs1]
  /groups/dudman/home/kirkhamj/dask/dask/array/core.py:690: UserWarning: The token= keyword to map_blocks has been moved to name=
    warnings.warn("The token= keyword to map_blocks has been moved to name=")

dask/array/tests/test_reductions.py::test_arg_reductions[dfunc0-func0]
  /groups/dudman/home/kirkhamj/dask/dask/context.py:23: UserWarning: The dask.set_options function has been deprecated. Please use dask.config.set instead
    warnings.warn("The dask.set_options function has been deprecated. "

dask/array/tests/test_reductions.py::test_reductions_2D_nans
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/numpy/core/_methods.py:29: RuntimeWarning: invalid value encountered in reduce
    return umr_minimum(a, axis, None, out, keepdims)
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/numpy/core/_methods.py:26: RuntimeWarning: invalid value encountered in reduce
    return umr_maximum(a, axis, None, out, keepdims)

dask/array/tests/test_slicing.py::test_empty_list
  /groups/dudman/home/kirkhamj/dask/dask/array/slicing.py:72: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
    elif np.issubdtype(index_array.dtype, float):

dask/array/tests/test_slicing.py::test_sanitize_index
  /groups/dudman/home/kirkhamj/dask/dask/array/slicing.py:72: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
    elif np.issubdtype(index_array.dtype, float):

dask/array/tests/test_ufunc.py::test_issignedinf
  /groups/dudman/home/kirkhamj/dask/dask/array/tests/test_ufunc.py:272: RuntimeWarning: divide by zero encountered in true_divide
    arr = np.random.randint(-1, 2, size=(20, 20)).astype(float) / 0
  /groups/dudman/home/kirkhamj/dask/dask/array/tests/test_ufunc.py:272: RuntimeWarning: invalid value encountered in true_divide
    arr = np.random.randint(-1, 2, size=(20, 20)).astype(float) / 0

dask/dataframe/tests/test_groupby.py::test_full_groupby
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:123: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby('a').apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_apply_multiarg
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:148: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby('a').apply(func, c))
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:151: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby('a').apply(func, c, d=d))
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:154: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby('a').apply(func, c_lazy), check_dtype=False)
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:160: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby('a').apply(func, c, d=d_lazy))
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:148: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby('a').apply(func, c))
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:151: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby('a').apply(func, c, d=d))
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:154: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby('a').apply(func, c_lazy), check_dtype=False)
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:160: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby('a').apply(func, c, d=d_lazy))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[True-grouper0]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[True-grouper1]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[True-grouper2]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[True-grouper3]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[True-grouper4]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[False-grouper0]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[False-grouper1]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[False-grouper2]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[False-grouper3]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_groupby.py::test_full_groupby_multilevel[False-grouper4]
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_groupby.py:190: UserWarning: `meta` is not specified, inferred from partial data. Please provide `meta` if the result is unexpected.
    Before: .apply(func)
    After:  .apply(func, meta={'x': 'f8', 'y': 'f8'}) for dataframe result
    or:     .apply(func, meta=('x', 'f8'))            for series result
    ddf.groupby(grouper(ddf)).apply(func))

dask/dataframe/tests/test_multi.py::test_merge_by_multiple_columns[disk-inner]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]

dask/dataframe/tests/test_multi.py::test_merge_by_multiple_columns[disk-outer]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]

dask/dataframe/tests/test_multi.py::test_merge_by_multiple_columns[disk-left]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]

dask/dataframe/tests/test_multi.py::test_merge_by_multiple_columns[disk-right]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]

dask/dataframe/tests/test_multi.py::test_merge_by_multiple_columns[tasks-inner]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]

dask/dataframe/tests/test_multi.py::test_merge_by_multiple_columns[tasks-outer]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]

dask/dataframe/tests/test_multi.py::test_merge_by_multiple_columns[tasks-left]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]

dask/dataframe/tests/test_multi.py::test_merge_by_multiple_columns[tasks-right]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]
  /groups/dudman/home/kirkhamj/.conda/envs/dask_py34/lib/python3.4/site-packages/pandas/core/reshape/merge.py:1457: RuntimeWarning: divide by zero encountered in long_scalars
    stride //= shape[i]

dask/dataframe/tests/test_ufunc.py::test_mixed_types[fmod-arg21-arg10]
  /groups/dudman/home/kirkhamj/dask/dask/local.py:255: RuntimeWarning: invalid value encountered in fmod
    return func(*args2)
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_ufunc.py:302: RuntimeWarning: invalid value encountered in fmod
    assert_eq(npfunc(dask, arg2), npfunc(arg1, arg2))
  /groups/dudman/home/kirkhamj/dask/dask/array/ufunc.py:121: RuntimeWarning: invalid value encountered in fmod
    return self._ufunc(*args, **kwargs)
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_ufunc.py:306: RuntimeWarning: invalid value encountered in fmod
    assert_eq(dafunc(arg1, arg2), npfunc(arg1, arg2))

dask/dataframe/tests/test_ufunc.py::test_mixed_types[fmod-arg21-arg11]
  /groups/dudman/home/kirkhamj/dask/dask/local.py:255: RuntimeWarning: invalid value encountered in fmod
    return func(*args2)
  /groups/dudman/home/kirkhamj/dask/dask/local.py:255: RuntimeWarning: invalid value encountered in fmod
    return func(*args2)
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_ufunc.py:302: RuntimeWarning: invalid value encountered in fmod
    assert_eq(npfunc(dask, arg2), npfunc(arg1, arg2))
  /groups/dudman/home/kirkhamj/dask/dask/local.py:255: RuntimeWarning: invalid value encountered in fmod
    return func(*args2)
  /groups/dudman/home/kirkhamj/dask/dask/array/ufunc.py:121: RuntimeWarning: invalid value encountered in fmod
    return self._ufunc(*args, **kwargs)
  /groups/dudman/home/kirkhamj/dask/dask/dataframe/tests/test_ufunc.py:306: RuntimeWarning: invalid value encountered in fmod
    assert_eq(dafunc(arg1, arg2), npfunc(arg1, arg2))

-- Docs: http://doc.pytest.org/en/latest/warnings.html
================================= 3 failed, 4728 passed, 500 skipped, 22 xfailed, 6 xpassed, 80 warnings in 758.01 seconds ==================================

Activity

  1. shoyer commented on Jul 20, 2018

    @shoyer
    Member

    This is likely due to an outdated version of NumPy being installed. I know that conda-forge has stopped packaging projects for Python 3.4 recently.

  2. jakirkham commented on Jul 20, 2018

    @jakirkham
    MemberAuthor

    Good point. Looking at the testing environment I used it appears to have NumPy 1.14.0, which is pretty recent. Do you recall any issues with einsum there? Should I look for something in the NumPy issue tracker related to this?

  3. shoyer commented on Jul 20, 2018

    @shoyer
    Member
  4. jakirkham commented on Jul 20, 2018

    @jakirkham
    MemberAuthor

    Yep, you're right. This is fixed with PR ( numpy/numpy#10352 ). Applied the patch locally and the problem went away. A bit strange that we are only seeing this failure on Python 3.4 though. NVM was backported to NumPy 1.14.1 in PR ( numpy/numpy#10559 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions