4972903c8f20c71492adecee28def3442fd320b5,featurex/tests/test_io.py,,test_convert_to_long,#,22

Before Change


    ext = STFTExtractor(frame_size=1., spectrogram=False,
                        bins=[(100, 300), (300, 3000), (3000, 20000)])
    // This probably doesn"t work if doing stim.extract() due to multi-level
    timeline = ext.extract(stim).to_df(stim_name=True)
    assert "100_300" in timeline.columns
    long_timeline = convert_to_long_format(timeline)
    assert long_timeline.shape == (timeline.shape[0] * 3, 5)
    assert "feature" in long_timeline.columns

After Change


    assert "feature" in long_timeline.columns
    assert "value" in long_timeline.columns
    assert "100_300" not in long_timeline.columns
    timeline = ExtractorResult.merge_features([timeline])
    long_timeline = to_long_format(timeline)
    assert "feature" in long_timeline.columns
    assert "extractor" in long_timeline.columns
    assert "100_300" not in long_timeline.columns
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tyarkoni/pliers
Commit Name: 4972903c8f20c71492adecee28def3442fd320b5
Time: 2016-11-15
Author: quinten.mcnamara@gmail.com
File Name: featurex/tests/test_io.py
Class Name:
Method Name: test_convert_to_long


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 2a64b719917b4c23507d93229005106d60065415
Time: 2017-11-22
Author: i@rainx.cc
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: __QA_fetch_get_stock_transaction


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 9783be1abade3ea6f9700c6d7eceff06eb76c168
Time: 2017-08-14
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_day