We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 602b217 + 0f15081 commit 887b5aeCopy full SHA for 887b5ae
1 file changed
asyncroscopy/Microscope.py
@@ -371,6 +371,23 @@ def place_beam(self, position) -> None:
371
"""
372
self._place_beam(position)
373
374
+ @command(dtype_in=DevVarFloatArray, dtype_out=None)
375
+ def place_beam_list(self, positions) -> None:
376
+ """
377
+ Place beam at multiple positions sequentially.
378
+ Extension of place_beam command
379
+ Why not call place_beam in loop of client side -> It fails
380
381
+ if len(positions) % 2 != 0:
382
+ raise ValueError("Input must contain pairs of (x, y) values.")
383
+
384
+ for i in range(0, len(positions), 2):
385
+ x = float(positions[i])
386
+ y = float(positions[i + 1])
387
388
+ self._place_beam([x, y])
389
390
391
@command()
392
def blank_beam(self) -> None:
393
"""blank beam"""
0 commit comments