Skip to content

Commit

Permalink
reshape random array instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sroet committed Aug 14, 2024
1 parent 4d4a283 commit 691f8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_read_mrc_meta_data(self):
self.assertIn("make sure this is correct", cm.output[0])

def test_half_precision_read_write_cycle(self):
array = np.random.rand((3, 3, 3)).astype(np.float16)
array = np.random.rand(27).reshape((3, 3, 3)).astype(np.float16)
fname = pathlib.Path(self.tempdirname) / "test_half.mrc"
# Make sure no warnings are raised
with self.assertNoLogs(level="WARNING"):
Expand Down

0 comments on commit 691f8e1

Please sign in to comment.