We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ffcd64 commit a16a820Copy full SHA for a16a820
nibabel/tests/test_spatialimages.py
@@ -437,9 +437,9 @@ def test_slicer(self):
437
assert_array_equal(downsampled_img.header.get_zooms()[:3],
438
np.array(spatial_zooms) * 2)
439
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,))
+ max4d = (hasattr(img.header, '_structarr') and
+ 'dims' in img.header._structarr.dtype.fields and
+ img.header._structarr['dims'].shape == (4,))
443
# Check newaxis and single-slice errors
444
if t_axis == 3:
445
with assert_raises(IndexError):
0 commit comments