pymmcore-plus 0.10.0__py3-none-any.whl → 0.10.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -329,6 +329,8 @@ class MDAEngine(PMDAEngine):
329
329
  core = self._mmc
330
330
  if not event.keep_shutter_open and self._autoshutter_was_set:
331
331
  core.setAutoShutter(True)
332
+ # FIXME: this may not be hitting as intended...
333
+ # https://github.com/pymmcore-plus/pymmcore-plus/pull/353#issuecomment-2159176491
332
334
  if isinstance(event, SequencedEvent):
333
335
  if event.exposure_sequence:
334
336
  core.stopExposureSequence(self._mmc.getCameraDevice())
@@ -356,15 +358,23 @@ class MDAEngine(PMDAEngine):
356
358
  cam_device = self._mmc.getCameraDevice()
357
359
 
358
360
  if event.exposure_sequence:
361
+ with suppress(RuntimeError):
362
+ core.stopExposureSequence(cam_device)
359
363
  core.loadExposureSequence(cam_device, event.exposure_sequence)
360
364
  if event.x_sequence: # y_sequence is implied and will be the same length
361
365
  stage = core.getXYStageDevice()
366
+ with suppress(RuntimeError):
367
+ core.stopXYStageSequence(stage)
362
368
  core.loadXYStageSequence(stage, event.x_sequence, event.y_sequence)
363
369
  if event.z_sequence:
364
370
  zstage = core.getFocusDevice()
371
+ with suppress(RuntimeError):
372
+ core.stopStageSequence(zstage)
365
373
  core.loadStageSequence(zstage, event.z_sequence)
366
374
  if prop_seqs := event.property_sequences(core):
367
375
  for (dev, prop), value_sequence in prop_seqs.items():
376
+ with suppress(RuntimeError):
377
+ core.stopPropertySequence(dev, prop)
368
378
  core.loadPropertySequence(dev, prop, value_sequence)
369
379
 
370
380
  # TODO: SLM
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymmcore-plus
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: pymmcore superset providing improved APIs, event handling, and a pure python acquisition engine
5
5
  Project-URL: Source, https://github.com/pymmcore-plus/pymmcore-plus
6
6
  Project-URL: Tracker, https://github.com/pymmcore-plus/pymmcore-plus/issues
@@ -25,7 +25,7 @@ pymmcore_plus/core/events/_protocol.py,sha256=Cf9uGZe_uP8nIa8rsaDIX5RCW5pNQQt2ju
25
25
  pymmcore_plus/core/events/_psygnal.py,sha256=NNM-MrUOKJPF4_fiNgidQb2r_tK21Sqs1qIY_AcnxlA,1620
26
26
  pymmcore_plus/core/events/_qsignals.py,sha256=gr-GDiSVLhFhSfaoKrdTz2y3I_2IUg62bYDGuGrB3j0,3018
27
27
  pymmcore_plus/mda/__init__.py,sha256=MrRYE2rYuIw4dQib4KiRgVbTkjdsE-6tcTjns68Grzk,298
28
- pymmcore_plus/mda/_engine.py,sha256=NSbKLVJ43gyNzYldPdxkjhRdpHp3KO7LljdliiDoG5w,21433
28
+ pymmcore_plus/mda/_engine.py,sha256=vHkMyrOAj7glNgdvltINOzFVOmhnJ1dSmp-S-GJapBE,21953
29
29
  pymmcore_plus/mda/_protocol.py,sha256=p98OkG390Q2Rj05Cl5mza6BUTscPol_cgTxXXMkpNcI,3182
30
30
  pymmcore_plus/mda/_runner.py,sha256=1U39sfI7g29K7fkrNLqDGyWYSjStIWLymVrp2Kj_HF8,15365
31
31
  pymmcore_plus/mda/_thread_relay.py,sha256=wjP1tag7nN2Sr0RzaPnYRqHl8XjAQg2MpXOt0ONLcQ8,6112
@@ -49,8 +49,8 @@ pymmcore_plus/model/_device.py,sha256=cQngFxQ6tufrT9G46oO5iX9wh-44zZraaIFNQCyzML
49
49
  pymmcore_plus/model/_microscope.py,sha256=-soGj918ue_71mrROQ5_7cbjexKp41wPn7im0l2BfaY,9822
50
50
  pymmcore_plus/model/_pixel_size_config.py,sha256=J4qJmPZsN9dwEkoMtct5Ik-8zEC-v0aKxOBKGFH7kOE,2718
51
51
  pymmcore_plus/model/_property.py,sha256=gJM7SFjLB2HnN0E8HOn4qVlB2wAxmkEFxSJFjKauZEk,3328
52
- pymmcore_plus-0.10.0.dist-info/METADATA,sha256=Eu4ALcglK__g6Zf-gB-rsByKcCgDz3PxuEQ7EJBgXQ8,9220
53
- pymmcore_plus-0.10.0.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
54
- pymmcore_plus-0.10.0.dist-info/entry_points.txt,sha256=NtFyndrQzBpUNJyil-8e5hMGke2utAf7mkGavTLcLOY,51
55
- pymmcore_plus-0.10.0.dist-info/licenses/LICENSE,sha256=OHJjRpOPKKRc7FEnpehNWdR5LRBdBhUtIFG-ZI0dCEA,1522
56
- pymmcore_plus-0.10.0.dist-info/RECORD,,
52
+ pymmcore_plus-0.10.1.dist-info/METADATA,sha256=Us1saW-N52DvnfbYED8rkPmY2qUGR13K7c3Sq2MYiBc,9220
53
+ pymmcore_plus-0.10.1.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
54
+ pymmcore_plus-0.10.1.dist-info/entry_points.txt,sha256=NtFyndrQzBpUNJyil-8e5hMGke2utAf7mkGavTLcLOY,51
55
+ pymmcore_plus-0.10.1.dist-info/licenses/LICENSE,sha256=OHJjRpOPKKRc7FEnpehNWdR5LRBdBhUtIFG-ZI0dCEA,1522
56
+ pymmcore_plus-0.10.1.dist-info/RECORD,,