-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathplans.json
More file actions
859 lines (859 loc) · 44.2 KB
/
plans.json
File metadata and controls
859 lines (859 loc) · 44.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
{
"plans": [
{
"name": "count",
"description": "Reads from a number of devices.\n Wraps bluesky.plans.count(det, num, delay, md=metadata) exposing only serializable\n parameters and metadata.\n ",
"schema": {
"additionalProperties": false,
"properties": {
"detectors": {
"items": {
"enum": [
"det",
"stage"
],
"type": "bluesky.protocols.Readable"
},
"title": "Detectors",
"type": "array",
"uniqueItems": true
},
"num": {
"title": "Num",
"type": "integer",
"default": 1
},
"delay": {
"anyOf": [
{
"type": "number"
},
{
"items": {
"type": "number"
},
"type": "array"
}
],
"default": 0.0,
"title": "Delay"
},
"metadata": {
"additionalProperties": true,
"title": "Metadata",
"type": "object",
"default": null
}
},
"required": [
"detectors"
],
"title": "count",
"type": "object"
}
},
{
"name": "spec_scan",
"description": "Generic plan for reading `detectors` at every point of a ScanSpec `Spec`.\n A `Spec` is an N-dimensional path.\n ",
"schema": {
"$defs": {
"Concat_Reference_": {
"additionalProperties": false,
"description": "Concatenate two Specs together, running one after the other.\n\nEach Dimension of left and right must contain the same axes. Typically\nformed using `Spec.concat`.\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace\n\n spec = Fly(Linspace(\"x\", 1, 3, 3).concat(Linspace(\"x\", 4, 5, 5)))",
"properties": {
"left": {
"$ref": "#/$defs/Spec",
"description": "The left-hand Spec to Concat, midpoints will appear earlier"
},
"right": {
"$ref": "#/$defs/Spec",
"description": "The right-hand Spec to Concat, midpoints will appear later"
},
"gap": {
"default": false,
"description": "If True, force a gap in the output at the join",
"title": "Gap",
"type": "boolean"
},
"check_path_changes": {
"default": true,
"description": "If True path through scan will not be modified by squash",
"title": "Check Path Changes",
"type": "boolean"
},
"type": {
"const": "Concat",
"default": "Concat",
"title": "Type",
"type": "string"
}
},
"required": [
"left",
"right"
],
"title": "Concat",
"type": "object"
},
"ConstantDuration_Reference_": {
"additionalProperties": false,
"description": "Apply a constant duration to every point in a Spec.\n\nTypically applied with the ``@`` modifier.\n\n.. example_spec::\n\n from scanspec.specs import Linspace\n\n spec = 0.1 @ Linspace(\"x\", 1, 2, 3)",
"properties": {
"constant_duration": {
"description": "The value at each point",
"title": "Constant Duration",
"type": "number"
},
"spec": {
"anyOf": [
{
"$ref": "#/$defs/Spec"
},
{
"type": "null"
}
],
"default": null,
"description": "Spec contaning the path to be followed"
},
"type": {
"const": "ConstantDuration",
"default": "ConstantDuration",
"title": "Type",
"type": "string"
}
},
"required": [
"constant_duration"
],
"title": "ConstantDuration",
"type": "object"
},
"Ellipse_Reference_": {
"additionalProperties": false,
"description": "Grid of points masked to an elliptical footprint.\n\nConstructs a 2-D scan over an axis-aligned ellipse defined by\n``(x_axis, y_axis)``, centred at (``x_centre``, ``y_centre``), with\ndiameters ``x_diameter`` and ``y_diameter``. Grid spacing along each axis is\ncontrolled by ``x_step`` and ``y_step``. If ``snake`` is True, the fast\naxis will zigzag like a snake. If ``vertical`` is True, the y axis will be\nthe fast axis.\n\nStarts from one of the four extremes of the ellipse identified by the signs of\n``x_step`` and ``y_step``.\n\n.. example_spec::\n\n from scanspec.specs import Ellipse, Fly\n\n # An elliptical region centred at (0, 0) on axes \"x\" and \"y\",\n # with 10x6 diameters and steps of 0.5 in both directions.\n spec = Fly(\n Ellipse(\n \"x\", 0, 10, 0.5,\n \"y\", 0, 6,\n snake=True,\n vertical=False,\n )\n )",
"properties": {
"x_axis": {
"description": "An identifier for what to move for x",
"enum": [],
"title": "X Axis",
"type": "bluesky.protocols.Movable"
},
"x_centre": {
"description": "x centre of the spiral",
"title": "X Centre",
"type": "number"
},
"x_diameter": {
"description": "x width of the spiral",
"title": "X Diameter",
"type": "number"
},
"x_step": {
"description": "Spacing along x",
"exclusiveMinimum": 0,
"title": "X Step",
"type": "number"
},
"y_axis": {
"description": "An identifier for what to move for y",
"enum": [],
"title": "Y Axis",
"type": "bluesky.protocols.Movable"
},
"y_centre": {
"description": "y centre of the spiral",
"title": "Y Centre",
"type": "number"
},
"y_diameter": {
"description": "y width of the spiral (defaults to x_diameter)",
"title": "Y Diameter",
"type": "number"
},
"y_step": {
"description": "Spacing along y (defaults to x_step)",
"exclusiveMinimum": 0,
"title": "Y Step",
"type": "number"
},
"snake": {
"default": false,
"description": "If True, path zigzag like a snake (defaults to False)",
"title": "Snake",
"type": "boolean"
},
"vertical": {
"default": false,
"description": "If True, y axis is the fast axis (defaults to False)",
"title": "Vertical",
"type": "boolean"
},
"type": {
"const": "Ellipse",
"default": "Ellipse",
"title": "Type",
"type": "string"
}
},
"required": [
"x_axis",
"x_centre",
"x_diameter",
"x_step",
"y_axis",
"y_centre"
],
"title": "Ellipse",
"type": "object"
},
"Fly_Reference_": {
"additionalProperties": false,
"description": "Move through lower to upper bounds of the Spec rather than stopping.\n\nThis is commonly termed a \"fly scan\" rather than a \"step scan\"\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace\n\n spec = Fly(Linspace(\"x\", 1, 2, 3))",
"properties": {
"spec": {
"$ref": "#/$defs/Spec",
"description": "Spec contaning the path to be followed"
},
"type": {
"const": "Fly",
"default": "Fly",
"title": "Type",
"type": "string"
}
},
"required": [
"spec"
],
"title": "Fly",
"type": "object"
},
"Linspace_Reference_": {
"additionalProperties": false,
"description": "Linearly spaced frames with start and stop as first and last midpoints.\n\nThis class is intended to handle linearly spaced frames defined with a\nspecific number of frames.\n\n.. seealso::\n `Range`: For linearly spaced frames defined with a step size.\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace\n\n spec = Fly(Linspace(\"x\", 1, 2, 5))",
"properties": {
"axis": {
"description": "An identifier for what to move",
"enum": [],
"title": "Axis",
"type": "bluesky.protocols.Movable"
},
"start": {
"description": "Midpoint of the first point of the line",
"title": "Start",
"type": "number"
},
"stop": {
"description": "Midpoint of the last point of the line",
"title": "Stop",
"type": "number"
},
"num": {
"default": 1,
"description": "Number of frames to produce (defaults to 1)",
"minimum": 1,
"title": "Num",
"type": "integer"
},
"type": {
"const": "Linspace",
"default": "Linspace",
"title": "Type",
"type": "string"
}
},
"required": [
"axis",
"start",
"stop"
],
"title": "Linspace",
"type": "object"
},
"Polygon_Reference_": {
"additionalProperties": false,
"description": "Grid of points masked to a polygonal footprint.\n\nConstructs a 2-D scan over an axis-aligned polygon defined by an ordered\nlist of vertices \"(x, y)\" given in ``vertices``. The polygon may be convex\nor concave, and the interior is determined using an even-odd ray-casting\nrule. Grid spacing along each axis is controlled by ``x_step`` and ``y_step``,\nIf ``snake`` is True, the fast axis will zigzag like a snake. If ``vertical`` is\nTrue, the y axis will be the fast axis.\n\n.. example_spec::\n\n from scanspec.specs import Polygon, Fly\n\n # A triangular region on axes \"x\" and \"y\", stepped by 0.2 units\n # in both directions.\n spec = Fly(\n Polygon(\n x_axis=\"x\",\n y_axis=\"y\",\n vertices=[(0, 0), (5, 0), (2.5, 4)],\n x_step=0.2,\n y_step=0.2,\n snake=True,\n vertical=False,\n )\n )",
"properties": {
"x_axis": {
"description": "An identifier for what to move for x",
"enum": [],
"title": "X Axis",
"type": "bluesky.protocols.Movable"
},
"y_axis": {
"description": "An identifier for what to move for y",
"enum": [],
"title": "Y Axis",
"type": "bluesky.protocols.Movable"
},
"vertices": {
"description": "List of (x, y) vertices defining the polygon",
"items": {
"maxItems": 2,
"minItems": 2,
"prefixItems": [
{
"type": "number"
},
{
"type": "number"
}
],
"type": "array"
},
"title": "Vertices",
"type": "array"
},
"x_step": {
"description": "Spacing along x",
"exclusiveMinimum": 0,
"title": "X Step",
"type": "number"
},
"y_step": {
"description": "Spacing along y (defaults to x_step)",
"exclusiveMinimum": 0,
"title": "Y Step",
"type": "number"
},
"snake": {
"default": false,
"description": "If True, path zigzag like a snake (defaults to False)",
"title": "Snake",
"type": "boolean"
},
"vertical": {
"default": false,
"description": "If True, y axis is the fast axis (defaults to False)",
"title": "Vertical",
"type": "boolean"
},
"type": {
"const": "Polygon",
"default": "Polygon",
"title": "Type",
"type": "string"
}
},
"required": [
"x_axis",
"y_axis",
"vertices",
"x_step"
],
"title": "Polygon",
"type": "object"
},
"Product_Reference_": {
"additionalProperties": false,
"description": "Outer product of two Specs, nesting inner within outer.\n\nThis means that inner will run in its entirety at each point in outer.\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace\n\n spec = Fly(Linspace(\"y\", 1, 2, 3) * Linspace(\"x\", 3, 4, 12))\n\nAn inner integer can be used to repeat the same point many times.\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace\n\n spec = Fly(Linspace(\"y\", 1, 2, 3) * 2)\n\nAn outer integer can be used to repeat the same scan many times.\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace\n\n spec = Fly(2 * ~Linspace.bounded(\"x\", 3, 4, 1))\n\nIf you want snaked axes to have no gap between iterations you can do:\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace, Product\n\n spec = Fly(Product(2, ~Linspace.bounded(\"x\", 3, 4, 1), gap=False))\n\n.. note:: There is no turnaround arrow at x=4",
"properties": {
"outer": {
"anyOf": [
{
"$ref": "#/$defs/Spec"
},
{
"type": "integer"
}
],
"description": "Will be executed once",
"title": "Outer"
},
"inner": {
"anyOf": [
{
"$ref": "#/$defs/Spec"
},
{
"type": "integer"
}
],
"description": "Will be executed len(outer) times",
"title": "Inner"
},
"gap": {
"default": true,
"description": "If False and the outer spec is an integer and the inner spec is snaked then the end and start of consecutive iterations of inner will have no gap",
"title": "Gap",
"type": "boolean"
},
"type": {
"const": "Product",
"default": "Product",
"title": "Type",
"type": "string"
}
},
"required": [
"outer",
"inner"
],
"title": "Product",
"type": "object"
},
"Range_Reference_": {
"additionalProperties": false,
"description": "Linearly spaced frames with start and stop as the bounding midpoints.\n\n``step`` defines the distance between midpoints.\n\n.. seealso::\n `Linspace`: For linearly spaced frames defined with a number of frames.\n\n.. example_spec::\n\n from scanspec.specs import Fly, Range\n\n spec = Fly(Range(\"x\", 1, 2, 0.25))",
"properties": {
"axis": {
"description": "An identifier for what to move",
"enum": [],
"title": "Axis",
"type": "bluesky.protocols.Movable"
},
"start": {
"description": "Midpoint of the first point of the line",
"title": "Start",
"type": "number"
},
"stop": {
"description": "Midpoint of the last point of the line",
"title": "Stop",
"type": "number"
},
"step": {
"description": "Step size (defaults to stop - start)",
"exclusiveMinimum": 0,
"title": "Step",
"type": "number"
},
"type": {
"const": "Range",
"default": "Range",
"title": "Type",
"type": "string"
}
},
"required": [
"axis",
"start",
"stop"
],
"title": "Range",
"type": "object"
},
"Snake_Reference_": {
"additionalProperties": false,
"description": "Run the Spec in reverse on every other iteration when nested.\n\nTypically created with the ``~`` operator.\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace\n\n spec = Fly(Linspace(\"y\", 1, 3, 3) * ~Linspace(\"x\", 3, 5, 5))",
"properties": {
"spec": {
"$ref": "#/$defs/Spec",
"description": "The Spec to run in reverse every other iteration"
},
"type": {
"const": "Snake",
"default": "Snake",
"title": "Type",
"type": "string"
}
},
"required": [
"spec"
],
"title": "Snake",
"type": "object"
},
"Spec": {
"discriminator": {
"mapping": {
"Concat": "#/$defs/Concat_Reference_",
"ConstantDuration": "#/$defs/ConstantDuration_Reference_",
"Ellipse": "#/$defs/Ellipse_Reference_",
"Fly": "#/$defs/Fly_Reference_",
"Linspace": "#/$defs/Linspace_Reference_",
"Polygon": "#/$defs/Polygon_Reference_",
"Product": "#/$defs/Product_Reference_",
"Range": "#/$defs/Range_Reference_",
"Snake": "#/$defs/Snake_Reference_",
"Spiral": "#/$defs/Spiral_Reference_",
"Squash": "#/$defs/Squash_Reference_",
"Static": "#/$defs/Static_Reference_",
"Zip": "#/$defs/Zip_Reference_"
},
"propertyName": "type"
},
"oneOf": [
{
"$ref": "#/$defs/Product_Reference_"
},
{
"$ref": "#/$defs/Zip_Reference_"
},
{
"$ref": "#/$defs/Snake_Reference_"
},
{
"$ref": "#/$defs/Concat_Reference_"
},
{
"$ref": "#/$defs/Squash_Reference_"
},
{
"$ref": "#/$defs/Linspace_Reference_"
},
{
"$ref": "#/$defs/Range_Reference_"
},
{
"$ref": "#/$defs/Fly_Reference_"
},
{
"$ref": "#/$defs/ConstantDuration_Reference_"
},
{
"$ref": "#/$defs/Static_Reference_"
},
{
"$ref": "#/$defs/Spiral_Reference_"
},
{
"$ref": "#/$defs/Ellipse_Reference_"
},
{
"$ref": "#/$defs/Polygon_Reference_"
}
]
},
"Spiral_Reference_": {
"additionalProperties": false,
"description": "Archimedean spiral of \"x_axis\" and \"y_axis\".\n\nStarts at centre point (\"x_start\", \"y_start\")\". Produces \"num\" points in a\nspiral spanning width of \"x_range\" and height of \"y_range\"\n\n.. example_spec::\n\n from scanspec.specs import Fly, Spiral\n\n spec = Fly(Spiral(\"x\", 1, 10, 2.5, \"y\", 5, 50))",
"properties": {
"x_axis": {
"description": "An identifier for what to move for x",
"enum": [],
"title": "X Axis",
"type": "bluesky.protocols.Movable"
},
"x_centre": {
"description": "x centre of the spiral",
"title": "X Centre",
"type": "number"
},
"x_diameter": {
"description": "x width of the spiral",
"title": "X Diameter",
"type": "number"
},
"x_step": {
"description": "Radial spacing along x",
"title": "X Step",
"type": "number"
},
"y_axis": {
"description": "An identifier for what to move for y",
"enum": [],
"title": "Y Axis",
"type": "bluesky.protocols.Movable"
},
"y_centre": {
"description": "y centre of the spiral",
"title": "Y Centre",
"type": "number"
},
"y_diameter": {
"description": "y width of the spiral (defaults to x_diameter)",
"title": "Y Diameter",
"type": "number"
},
"type": {
"const": "Spiral",
"default": "Spiral",
"title": "Type",
"type": "string"
}
},
"required": [
"x_axis",
"x_centre",
"x_diameter",
"x_step",
"y_axis",
"y_centre"
],
"title": "Spiral",
"type": "object"
},
"Squash_Reference_": {
"additionalProperties": false,
"description": "Squash a stack of Dimension together into a single expanded Dimension object.\n\nSee Also:\n `why-squash-can-change-path`\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace, Squash\n\n spec = Fly(Squash(Linspace(\"y\", 1, 2, 3) * Linspace(\"x\", 0, 1, 4)))",
"properties": {
"spec": {
"$ref": "#/$defs/Spec",
"description": "The Spec to squash the dimensions of"
},
"check_path_changes": {
"default": true,
"description": "If True path through scan will not be modified by squash",
"title": "Check Path Changes",
"type": "boolean"
},
"type": {
"const": "Squash",
"default": "Squash",
"title": "Type",
"type": "string"
}
},
"required": [
"spec"
],
"title": "Squash",
"type": "object"
},
"Static_Reference_": {
"additionalProperties": false,
"description": "A static frame, repeated num times, with axis at value.\n\nCan be used to set axis=value at every point in a scan.\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace, Static\n\n spec = Fly(Linspace(\"y\", 1, 2, 3).zip(Static(\"x\", 3)))",
"properties": {
"axis": {
"description": "An identifier for what to move",
"enum": [],
"title": "Axis",
"type": "bluesky.protocols.Movable"
},
"value": {
"description": "The value at each point",
"title": "Value",
"type": "number"
},
"num": {
"default": 1,
"description": "Number of frames to produce",
"minimum": 1,
"title": "Num",
"type": "integer"
},
"type": {
"const": "Static",
"default": "Static",
"title": "Type",
"type": "string"
}
},
"required": [
"axis",
"value"
],
"title": "Static",
"type": "object"
},
"Zip_Reference_": {
"additionalProperties": false,
"description": "Run two Specs in parallel, merging their midpoints together.\n\nTypically formed using `Spec.zip`.\n\nStacks of Dimension are merged by:\n\n- If right creates a stack of a single Dimension object of size 1, expand it to\n the size of the fastest Dimension object created by left\n- Merge individual Dimension objects together from fastest to slowest\n\nThis means that Zipping a Spec producing stack [l2, l1] with a Spec\nproducing stack [r1] will assert len(l1)==len(r1), and produce\nstack [l2, l1.zip(r1)].\n\n.. example_spec::\n\n from scanspec.specs import Fly, Linspace\n\n spec = Fly(\n Linspace(\"z\", 1, 2, 3) * Linspace(\"y\", 3, 4, 5).zip(Linspace(\"x\", 4, 5, 5))\n )",
"properties": {
"left": {
"$ref": "#/$defs/Spec",
"description": "The left-hand Spec to Zip, will appear earlier in axes"
},
"right": {
"$ref": "#/$defs/Spec",
"description": "The right-hand Spec to Zip, will appear later in axes"
},
"type": {
"const": "Zip",
"default": "Zip",
"title": "Type",
"type": "string"
}
},
"required": [
"left",
"right"
],
"title": "Zip",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"detectors": {
"items": {
"enum": [
"det",
"stage"
],
"type": "bluesky.protocols.Readable"
},
"title": "Detectors",
"type": "array",
"uniqueItems": true
},
"spec": {
"$ref": "#/$defs/Spec"
},
"metadata": {
"additionalProperties": true,
"title": "Metadata",
"type": "object",
"default": null
}
},
"required": [
"detectors",
"spec"
],
"title": "spec_scan",
"type": "object"
}
},
{
"name": "set_absolute",
"description": "Set a device, wrapper for `bp.abs_set`.\n\n Args:\n movable (Movable[T]): The device to set.\n value (T): The new value.\n group (Group | None, optional): The message group to associate with the setting,\n for sequencing. Defaults to None.\n wait (bool, optional): The group should wait until all setting is complete (e.g.\n a motor has finished moving). Defaults to False.\n\n Returns:\n MsgGenerator: Plan.\n\n Yields:\n Iterator[MsgGenerator]: Bluesky messages.\n ",
"schema": {
"additionalProperties": false,
"properties": {
"movable": {
"enum": [],
"title": "Movable",
"type": "bluesky.protocols.Movable",
"types": [
"Any"
]
},
"value": {
"title": "Value"
},
"group": {
"title": "Group",
"type": "string",
"default": null
},
"wait": {
"title": "Wait",
"type": "boolean",
"default": false
}
},
"required": [
"movable",
"value"
],
"title": "set_absolute",
"type": "object"
}
},
{
"name": "set_relative",
"description": "Change a device, wrapper for `bp.rel_set`.\n\n Args:\n movable (Movable): The device to set.\n value (T): The new value.\n group (Group | None, optional): The message group to associate with the setting,\n for sequencing. Defaults to None.\n wait (bool, optional): The group should wait until all setting is complete (e.g.\n a motor has finished moving). Defaults to False.\n\n Returns:\n MsgGenerator: Plan.\n\n Yields:\n Iterator[MsgGenerator]: Bluesky messages.\n ",
"schema": {
"additionalProperties": false,
"properties": {
"movable": {
"enum": [],
"title": "Movable",
"type": "bluesky.protocols.Movable",
"types": [
"Any"
]
},
"value": {
"title": "Value"
},
"group": {
"title": "Group",
"type": "string",
"default": null
},
"wait": {
"title": "Wait",
"type": "boolean",
"default": false
}
},
"required": [
"movable",
"value"
],
"title": "set_relative",
"type": "object"
}
},
{
"name": "move",
"description": "Move a device, wrapper for `bp.mv`.\n\n Args:\n moves (Mapping[Movable, T]): Mapping of Movables to target positions.\n group (Group | None, optional): The message group to associate with the setting,\n for sequencing. Defaults to None.\n\n Returns:\n MsgGenerator: Plan.\n\n Yields:\n Iterator[MsgGenerator]: Bluesky messages.\n ",
"schema": {
"additionalProperties": false,
"properties": {
"moves": {
"additionalProperties": true,
"title": "Moves",
"type": "object"
},
"group": {
"title": "Group",
"type": "string",
"default": null
}
},
"required": [
"moves"
],
"title": "move",
"type": "object"
}
},
{
"name": "move_relative",
"description": "Move a device relative to its current position, wrapper for `bp.mvr`.\n\n Args:\n moves (Mapping[Movable, T]): Mapping of Movables to target deltas.\n group (Group | None, optional): The message group to associate with the\n setting, for sequencing. Defaults to None.\n\n Returns:\n MsgGenerator: Plan.\n\n Yields:\n Iterator[MsgGenerator]: Bluesky messages.\n ",
"schema": {
"additionalProperties": false,
"properties": {
"moves": {
"additionalProperties": true,
"title": "Moves",
"type": "object"
},
"group": {
"title": "Group",
"type": "string",
"default": null
}
},
"required": [
"moves"
],
"title": "move_relative",
"type": "object"
}
},
{
"name": "sleep",
"description": "Suspend all action for a given time, wrapper for `bp.sleep`.\n\n Args:\n time (float): Time to wait in seconds.\n\n Returns:\n MsgGenerator: Plan.\n\n Yields:\n Iterator[MsgGenerator]: Bluesky messages.\n ",
"schema": {
"additionalProperties": false,
"properties": {
"time": {
"title": "Time",
"type": "number"
}
},
"required": [
"time"
],
"title": "sleep",
"type": "object"
}
},
{
"name": "wait",
"description": "Wait for a group status to complete, wrapper for `bp.wait`.\n Does not expose move_on, as when used as a stub will not fail on Timeout.\n\n Args:\n group (Group | None, optional): The name of the group to wait for, defaults to\n None, in which case waits for all groups that have not yet been awaited.\n timeout (float | None, default=None): a timeout in seconds.\n\n Returns:\n MsgGenerator: Plan.\n\n Yields:\n Iterator[MsgGenerator]: Bluesky messages.\n ",
"schema": {
"additionalProperties": false,
"properties": {
"group": {
"title": "Group",
"type": "string",
"default": null
},
"timeout": {
"title": "Timeout",
"type": "number",
"default": null
}
},
"title": "wait",
"type": "object"
}
}
]
}