aab843410171a11dfd721b1d9cc980bee4420427,dask_image/ndfourier/_utils.py,,_get_freq_grid,#Any#Any#Any#,15

Before Change



    freq_grid = []
    for i in irange(ndim):
        sl = ndim * [None]
        sl[i] = slice(None)
        sl = tuple(sl)

        freq_grid_i = _compat._fftfreq(shape[i], chunks=chunks[i])
        freq_grid_i = freq_grid_i.astype(dtype)
        freq_grid_i = freq_grid_i[sl]

        for j in itertools.chain(range(i), range(i + 1, ndim)):
            freq_grid_i = freq_grid_i.repeat(shape[j], axis=j)

After Change


        dask.array.fft.fftfreq(s, chunks=c).astype(dtype)
        for s, c in izip(shape, chunks)
    ]
    freq_grid = dask.array.meshgrid(*freq_grid, indexing="ij")
    freq_grid = dask.array.stack(freq_grid)

    return freq_grid
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dask/dask-image
Commit Name: aab843410171a11dfd721b1d9cc980bee4420427
Time: 2018-09-02
Author: jakirkham@gmail.com
File Name: dask_image/ndfourier/_utils.py
Class Name:
Method Name: _get_freq_grid


Project Name: scikit-image/scikit-image
Commit Name: 96e5c12dc5a3a082cbd52fb8164da31318e0201e
Time: 2017-11-14
Author: pradyumnanpk@gmail.com
File Name: skimage/feature/_hog.py
Class Name:
Method Name: hog


Project Name: broadinstitute/keras-rcnn
Commit Name: df93c4e61e7ca1db25f1ee346ac0516685498b02
Time: 2017-08-15
Author: allen.goodman@icloud.com
File Name: keras_rcnn/backend/tensorflow_backend.py
Class Name:
Method Name: shift