3949543a5a9a9cfbc18608fe2dd52ae005fc6afa,hyperspy/tests/misc/test_fei_stream_readers.py,,test_sparse_stream,#,52

Before Change


    arr[1, 1, 3, 3] = 3
    stream = array_to_stream(arr)
    if lazy:
        arrs = da.from_array(stream_to_sparse_COO_array(
            stream, spatial_shape=(3, 4), sum_frames=False, channels=5,
            last_frame=2), chunks=(1, 1, 2, 5))
        arrs = arrs.compute()
        assert (arrs == arr).all()
    else:
        arrs = stream_to_array(

After Change


    arr[1, 1, 3, 3] = 3
    stream = array_to_stream(arr)
    if lazy:
        arrs = stream_to_sparse_COO_array(
            stream, spatial_shape=(3, 4), sum_frames=False, channels=5,
            last_frame=2)
        arrs = arrs.compute()
        assert (arrs == arr).all()
    else:
        arrs = stream_to_array(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: hyperspy/hyperspy
Commit Name: 3949543a5a9a9cfbc18608fe2dd52ae005fc6afa
Time: 2019-09-02
Author: eric.prestat@gmail.com
File Name: hyperspy/tests/misc/test_fei_stream_readers.py
Class Name:
Method Name: test_sparse_stream


Project Name: hyperspy/hyperspy
Commit Name: 3949543a5a9a9cfbc18608fe2dd52ae005fc6afa
Time: 2019-09-02
Author: eric.prestat@gmail.com
File Name: hyperspy/tests/misc/test_fei_stream_readers.py
Class Name:
Method Name: test_empty_stream


Project Name: hyperspy/hyperspy
Commit Name: 3949543a5a9a9cfbc18608fe2dd52ae005fc6afa
Time: 2019-09-02
Author: eric.prestat@gmail.com
File Name: hyperspy/tests/misc/test_fei_stream_readers.py
Class Name:
Method Name: test_dense_stream