Skip to content

Commit 07bbb25

Browse files
committed
TEST: Do not use deprecated _header_data
1 parent e809636 commit 07bbb25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nibabel/tests/test_spatialimages.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,9 @@ def test_slicer(self):
437437
assert_array_equal(downsampled_img.header.get_zooms()[:3],
438438
np.array(spatial_zooms) * 2)
439439

440-
max4d = (hasattr(img.header, '_header_data') and
441-
'dims' in img.header._header_data.dtype.fields and
442-
img.header._header_data['dims'].shape == (4,))
440+
max4d = (hasattr(img.header, '_structarr') and
441+
'dims' in img.header._structarr.dtype.fields and
442+
img.header._structarr['dims'].shape == (4,))
443443
# Check newaxis and single-slice errors
444444
if t_axis == 3:
445445
with assert_raises(IndexError):

0 commit comments

Comments
 (0)