diff --git a/pycromanager/_version.py b/pycromanager/_version.py index a5baebcb..db276572 100644 --- a/pycromanager/_version.py +++ b/pycromanager/_version.py @@ -1,2 +1,2 @@ -version_info = (0, 34, 3) +version_info = (0, 34, 4) __version__ = ".".join(map(str, version_info)) diff --git a/pycromanager/test/test_acquisition.py b/pycromanager/test/test_acquisition.py index f11a149d..d4b5b1f0 100644 --- a/pycromanager/test/test_acquisition.py +++ b/pycromanager/test/test_acquisition.py @@ -666,5 +666,25 @@ def test_empty_axes(launch_mm_headless, setup_data_folder): dataset = acq.get_dataset() try: assert dataset.read_image() is not None and dataset.read_image().max() > 0 + finally: + dataset.close() + + +def test_8bit(launch_mm_headless, setup_data_folder): + """ + Test that images with empty axes are correctly saved + """ + events = multi_d_acquisition_events(10) + core = Core() + core.set_property('Camera', 'BitDepth', '8') + core.set_property('Camera', 'PixelType', '8bit') + + with Acquisition(setup_data_folder, 'test_8_bit', show_display=False) as acq: + acq.acquire(events) + + dataset = acq.get_dataset() + try: + image_coordinates = events[0]['axes'] + assert dataset.read_image(**image_coordinates) is not None and dataset.read_image(**image_coordinates).max() > 0 finally: dataset.close() \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b54ee154..cdcde29e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ numpy dask[array]>=2022.2.0 pyzmq -ndstorage>=0.1.5 +ndstorage>=0.1.6 docstring-inheritance pymmcore sortedcontainers