Skip to content

Commit

Permalink
add test for empty axes
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Apr 9, 2024
1 parent 5833ec7 commit 2b79634
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pycromanager/test/test_acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,3 +652,18 @@ def test_multi_channel_parsing(launch_mm_headless, setup_data_folder):
assert all([channel in dataset.get_channel_names() for channel in ["DAPI", "FITC"]])
finally:
dataset.close()


def test_empty_axes(launch_mm_headless, setup_data_folder):
"""
Test that images with empty axes are correctly saved
"""

with Acquisition(setup_data_folder, 'acq', show_display=False) as acq:
acq.acquire({'axes': {}})

dataset = acq.get_dataset()
try:
assert dataset.read_image() is not None and dataset.read_image().max() > 0
finally:
dataset.close()

0 comments on commit 2b79634

Please sign in to comment.