Skip to content

Commit

Permalink
update channel seq tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ieivanov committed Sep 6, 2023
1 parent f7e9f4d commit 07cc358
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pycromanager/test/test_acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,29 @@ def test_channel_seq_acq(launch_mm_headless, setup_data_folder):
"""
Test that channels can be sequenced
"""
channels = ['DAPI', 'FITC', 'Rhodamine', 'Cy5']

mmc = Core()
mmc.set_property('LED', 'Sequence', 'On')

events = multi_d_acquisition_events(channel_group='Channel-Multiband',
channels=channels)

def hook_fn(_events):
assert check_acq_sequenced(_events, len(events)), 'Sequenced acquisition is not built correctly'
return None # no need to actually acquire the data

with Acquisition(setup_data_folder, 'acq', show_display=False,
pre_hardware_hook_fn=hook_fn) as acq:
acq.acquire(events)


def test_channel_exp_seq_acq(launch_mm_headless, setup_data_folder):
"""
Test that channels can be sequenced when equal exposure times for each
channel are provided
"""
channels = ['DAPI', 'FITC', 'Rhodamine', 'Cy5']
channel_exposures_ms = [10] * len(channels) # exposure times may be provided, but must be all equal
Expand Down

0 comments on commit 07cc358

Please sign in to comment.