9b95e0f07b60b6a144893dcc506dfaf90db61c95,librosa/feature/utils.py,,stack_memory,#,119

Before Change



    data = np.pad(data, [(0, 0), padding], **kwargs)

    history = np.vstack([np.roll(data, -i * delay, axis=1) for i in range(n_steps)[::-1]])

    // Trim to original width
    if delay > 0:
        history = history[:, :t]

After Change


    t = data.shape[-1]
    
    if t < 1:
        raise ParameterError("Cannot stack memory when input data has "
                             "no columns. Given data.shape={}".format(data.shape))
    kwargs.setdefault("mode", "constant")

    if kwargs["mode"] == "constant":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: librosa/librosa
Commit Name: 9b95e0f07b60b6a144893dcc506dfaf90db61c95
Time: 2020-05-18
Author: bmcfee@users.noreply.github.com
File Name: librosa/feature/utils.py
Class Name:
Method Name: stack_memory


Project Name: nilmtk/nilmtk
Commit Name: 44672d4eba334ca97d32874d9aa03b02ce46d513
Time: 2014-12-10
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: load


Project Name: LCAV/pyroomacoustics
Commit Name: 1b557b0d8af92b652abc9899bc5ee39cc94fee4b
Time: 2017-06-21
Author: fakufaku@gmail.com
File Name: setup.py
Class Name:
Method Name: