ea6c84476442873fb85e20b9a637a3013dbac681,scipy/stats/_binned_statistic.py,,binned_statistic_dd,#Any#Any#Any#Any#Any#,261

Before Change


    except (AttributeError, ValueError):
        // Sample is a sequence of 1D arrays.
        sample = np.atleast_2d(sample).T
        N, D = sample.shape

    nbin = np.empty(D, int)
    edges = D * [None]

After Change


    result = result[core]

    // Unravel binnumbers into list, with a binnumber array for each dimension
    binnumber = np.asarray(np.unravel_index(xy, nbin))

    if (result.shape != nbin - 2).any():
        raise RuntimeError("Internal Shape Error")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: ea6c84476442873fb85e20b9a637a3013dbac681
Time: 2015-11-24
Author: lkelley@cfa.harvard.edu
File Name: scipy/stats/_binned_statistic.py
Class Name:
Method Name: binned_statistic_dd


Project Name: PyMVPA/PyMVPA
Commit Name: b54ceb695108986e589a3b7d82d11813efdbbdca
Time: 2011-01-03
Author: debian@onerussian.com
File Name: mvpa/tests/test_kernel.py
Class Name: KernelTests
Method Name: kernel_equiv


Project Name: IndicoDataSolutions/finetune
Commit Name: cb89711536f566f3ed7d121520fe32ad41ca83bc
Time: 2019-01-11
Author: benlt@hotmail.co.uk
File Name: finetune/association.py
Class Name: Association
Method Name: predict