Skip to content

Commit

Permalink
fix bug and change test to refelct new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Apr 8, 2024
1 parent 6a4051e commit d4696fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pycromanager/acquisition/acquisition_superclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def clear(self):
def put(self, item: Union[Dict, Generator[Dict, None, None]], block=True, timeout=None):
if isinstance(item, dict):
super().put(item, block, timeout)
if isinstance(item, list):
elif isinstance(item, list):
super().put(item, block, timeout)
# if isinstance(item, tuple):
# elif isinstance(item, tuple):
# super().put(item, block, timeout)
elif isinstance(item, Generator):
super().put(item, block, timeout)
Expand Down
2 changes: 1 addition & 1 deletion pycromanager/test/test_callback_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def hook_fn(image, metadata):
acq.acquire(events)
dataset = acq.get_dataset() # Can this be moved out of the Acquisition context?

assert dataset is None
assert len(dataset.get_index_keys()) == 0


def test_img_process_fn_image_saved_fn_consistency(launch_mm_headless, setup_data_folder):
Expand Down

0 comments on commit d4696fc

Please sign in to comment.