Skip to content

Commit 4dc2d50

Browse files
committed
TST: add sorted_labels property to FakeHeader in test_parrec.py
1 parent 0f45ac0 commit 4dc2d50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nibabel/tests/test_parrec.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@ def get_rec_shape(self):
681681
n_slices = np.prod(self._shape[2:])
682682
return self._shape[:2] + (n_slices,)
683683

684+
def sorted_labels(self, sorted_indices, collapse_slices):
685+
return np.arange(self._shape[-1])
686+
684687

685688
def test_parrec_proxy():
686689
# Test PAR / REC proxy class, including mmap flags

0 commit comments

Comments
 (0)