Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Jun 14, 2024
1 parent 79fcc92 commit b658269
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pycromanager/test/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@

def test_async_image_read(launch_mm_headless, setup_data_folder):
events = multi_d_acquisition_events(num_time_points=10, time_interval_s=0.5)
with Acquisition(directory=setup_data_folder, show_display=False) as acq:
with Acquisition(directory=setup_data_folder, name='test_async_image_read', show_display=False) as acq:
future = acq.acquire(events)
image = future.await_image_saved({'time': 5}, return_image=True)
assert np.all(image == acq.get_dataset().read_image(time=5))

def test_async_image_read_sequence(launch_mm_headless, setup_data_folder):
events = multi_d_acquisition_events(num_time_points=10, time_interval_s=0)
with Acquisition(directory=setup_data_folder, show_display=False) as acq:
with Acquisition(directory=setup_data_folder, name='test_async_image_read_sequence', show_display=False) as acq:
future = acq.acquire(events)
image = future.await_image_saved({'time': 5}, return_image=True)
assert np.all(image == acq.get_dataset().read_image(time=5))

def test_async_images_read(launch_mm_headless, setup_data_folder):
events = multi_d_acquisition_events(num_time_points=10, time_interval_s=0.5)
with Acquisition(directory=setup_data_folder, show_display=False) as acq:
with Acquisition(directory=setup_data_folder, name='test_async_images_read', show_display=False) as acq:
future = acq.acquire(events)
images = future.await_image_saved([{'time': 7}, {'time': 8}, {'time': 9}], return_image=True)
assert (len(images) == 3)
Expand All @@ -43,7 +43,7 @@ def test_async_images_read(launch_mm_headless, setup_data_folder):

def test_async_images_read_sequence(launch_mm_headless, setup_data_folder):
events = multi_d_acquisition_events(num_time_points=10, time_interval_s=0)
with Acquisition(directory=setup_data_folder, show_display=False) as acq:
with Acquisition(directory=setup_data_folder, name='test_async_images_read_sequence', show_display=False) as acq:
future = acq.acquire(events)
images = future.await_image_saved([{'time': 7}, {'time': 8}, {'time': 9}], return_image=True)
assert (len(images) == 3)
Expand Down

0 comments on commit b658269

Please sign in to comment.