29da6580debf9ef929f9c3ccb14c339183a3ef9c,tests/test_format_data.py,,test_mixed_list,#,19

Before Change


    data2 = pd.DataFrame(np.random.rand(100,10))
    assert isinstance(format_data([data1, data2]), list)
    assert isinstance(format_data([data1, data2])[0], np.ndarray)
    assert isinstance(format_data([data1, data2])[1], np.ndarray)

After Change


    df = pd.DataFrame(np.random.rand(3,20))
    text = ["here is some test text", "and a little more", "and more"]
    string = "a string"
    res = format_data([mat, df, text, string])
    assert isinstance(res, list)
    assert all(map(lambda x: isinstance(x, np.ndarray), res))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ContextLab/hypertools
Commit Name: 29da6580debf9ef929f9c3ccb14c339183a3ef9c
Time: 2018-01-22
Author: andrew.heusser@gmail.com
File Name: tests/test_format_data.py
Class Name:
Method Name: test_mixed_list


Project Name: ContextLab/hypertools
Commit Name: 76b70c17a725e9266b27b1653ac5fde85d7e3c50
Time: 2017-01-05
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/align.py
Class Name:
Method Name: align


Project Name: ContextLab/hypertools
Commit Name: 00689bd11cafb79756035e684f90aa3ded849167
Time: 2017-01-05
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/align.py
Class Name:
Method Name: align