Skip to content

Commit 11be1a0

Browse files
committed
Fix SweepQueue to continue after callable actions
Updated SweepQueue to call begin_next() after executing a callable action if no error occurred. Also bumped project version to 1.2.6.
1 parent 1bbf2d3 commit 11be1a0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ where = ["src"]
1010

1111
[project]
1212
name = "qmeasure"
13-
version = "1.2.5"
13+
version = "1.2.6"
1414
description = "Measurement code for condensed matter groups at UW based on QCoDeS."
1515
readme = {file = "README.md", content-type = "text/markdown"}
1616
license = "GPL-3.0-or-later"

src/measureit/tools/sweep_queue.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,11 @@ def start(self, rts=True):
544544
# Continue with the next item in the queue
545545
self.begin_next()
546546
elif callable(self.current_action):
547-
# Schedule onto the Jupyter kernel thread if available
547+
# Execute callable synchronously, then continue to next item
548548
self._exec_in_kernel(self.current_action)
549+
# Continue with the next item in the queue (unless error occurred)
550+
if self._last_error is None:
551+
self.begin_next()
549552
else:
550553
self.log.error(
551554
"Invalid action found in the queue! %s. Stopping execution.",

0 commit comments

Comments
 (0)