Skip to content

Commit fdd26a2

Browse files
committed
added more changes to style
1 parent a3a2517 commit fdd26a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nibabel/freesurfer/tests/test_mghformat.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_write_mgh():
103103
assert h['type'] == 3
104104
assert h['dof'] == 0
105105
assert h['goodRASFlag'] == 1
106-
assert_array_equal(h['dims'], [5, 4, 3, 2])
106+
assert np.array_equal(h['dims'], [5, 4, 3, 2])
107107
assert_almost_equal(h['tr'], 0.0)
108108
assert_almost_equal(h['flip_angle'], 0.0)
109109
assert_almost_equal(h['te'], 0.0)
@@ -133,7 +133,7 @@ def test_write_noaffine_mgh():
133133
assert h['type'] == 0 # uint8 for mgh
134134
assert h['dof'] == 0
135135
assert h['goodRASFlag'] == 1
136-
assert_array_equal(h['dims'], [7, 13, 3, 22])
136+
assert np.array_equal(h['dims'], [7, 13, 3, 22])
137137
assert_almost_equal(h['tr'], 0.0)
138138
assert_almost_equal(h['flip_angle'], 0.0)
139139
assert_almost_equal(h['te'], 0.0)
@@ -217,7 +217,7 @@ def test_header_updating():
217217
assert_almost_equal(mgz.affine, exp_aff, 6)
218218
assert_almost_equal(hdr.get_affine(), exp_aff, 6)
219219
# Test that initial wonky header elements have not changed
220-
assert_array_equal(hdr['delta'], 1)
220+
assert np.array_equal(hdr['delta'], 1)
221221
assert_almost_equal(hdr['Mdc'].T, exp_aff[:3, :3])
222222
# Save, reload, same thing
223223
img_fobj = io.BytesIO()
@@ -458,7 +458,7 @@ def test_bytes(self):
458458
# Long binaryblocks are truncated
459459
with pytest.raises(WrapStructError):
460460
self.header_class(bb[:self.header_class._hdrdtype.itemsize - 1])
461-
461+
462462
# Checking set to true by default, and prevents nonsense being
463463
# set into the header.
464464
bb_bad = self.get_bad_bb()
@@ -467,7 +467,7 @@ def test_bytes(self):
467467
with imageglobals.LoggingOutputSuppressor():
468468
with pytest.raises(HeaderDataError):
469469
self.header_class(bb_bad)
470-
470+
471471
# now slips past without check
472472
_ = self.header_class(bb_bad, check=False)
473473

@@ -493,7 +493,7 @@ def check_fix(self, *args, **kwargs):
493493
# Assumes check=True default
494494
with pytest.raises(Exception):
495495
DC(hdr.binaryblock)
496-
496+
497497
hdr = DC(hdr.binaryblock, check=False)
498498
hdr2 = hdr.as_byteswapped('>')
499499

0 commit comments

Comments
 (0)