Skip to content

Commit

Permalink
add 8 bit test and update to ndstorage with bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Jun 18, 2024
1 parent 3c3e12e commit 6c09571
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pycromanager/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (0, 34, 3)
version_info = (0, 34, 4)
__version__ = ".".join(map(str, version_info))
20 changes: 20 additions & 0 deletions pycromanager/test/test_acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
numpy
dask[array]>=2022.2.0
pyzmq
ndstorage>=0.1.5
ndstorage>=0.1.6
docstring-inheritance
pymmcore
sortedcontainers
Expand Down

0 comments on commit 6c09571

Please sign in to comment.