Skip to content

Commit c7861d2

Browse files
committed
test_correction
1 parent 7ce7d0f commit c7861d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nibabel/streamlines/tests/test_array_sequence.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def test_creating_arraysequence_from_generator(self):
9797
seq_with_buffer = ArraySequence(gen_2, buffer_size=256)
9898

9999
# Check buffer size effect
100-
assert_true(seq_with_buffer.data.shape[0] > seq.data.shape[0])
101-
assert_equal(seq_with_buffer.common_shape, seq.common_shape)
100+
assert_equal(seq_with_buffer.data.shape, seq.data.shape)
101+
assert_true(seq_with_buffer._buffer_size > seq._buffer_size)
102102

103103
# Check generator result
104104
check_arr_seq(seq, SEQ_DATA['data'])
@@ -328,4 +328,5 @@ def test_concatenate():
328328
seqs = [seq[:, [i]] for i in range(seq.common_shape[0])]
329329
new_seq = concatenate(seqs, axis=0)
330330
assert_true(len(new_seq), seq.common_shape[0] * len(seq))
331-
assert_array_equal(new_seq._data, seq._data.T.reshape((-1, 0)))
331+
assert_array_equal(new_seq._data, seq._data.T.reshape((-1, 1)))
332+

0 commit comments

Comments
 (0)