mx-bluesky 1.5.2__py3-none-any.whl → 1.5.4__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.
- mx_bluesky/_version.py +16 -3
- mx_bluesky/beamlines/aithre_lasershaping/__init__.py +2 -0
- mx_bluesky/beamlines/aithre_lasershaping/beamline_safe.py +17 -0
- mx_bluesky/beamlines/i04/__init__.py +7 -3
- mx_bluesky/beamlines/i04/experiment_plans/i04_grid_detect_then_xray_centre_plan.py +3 -8
- mx_bluesky/beamlines/i04/thawing_plan.py +3 -3
- mx_bluesky/beamlines/i24/serial/blueapi_config.yaml +2 -2
- mx_bluesky/beamlines/i24/serial/fixed_target/FT-gui-edm/CustomChip_py3v1.edl +10 -10
- mx_bluesky/beamlines/i24/serial/fixed_target/FT-gui-edm/DetStage.edl +1 -1
- mx_bluesky/beamlines/i24/serial/fixed_target/FT-gui-edm/DiamondChipI24-py3v1.edl +68 -68
- mx_bluesky/beamlines/i24/serial/fixed_target/FT-gui-edm/ME14E-GeneralPurpose.edl +120 -120
- mx_bluesky/beamlines/i24/serial/fixed_target/FT-gui-edm/MappingLite-oxford_py3v1.edl +135 -135
- mx_bluesky/beamlines/i24/serial/fixed_target/FT-gui-edm/PMAC_Command.edl +2 -2
- mx_bluesky/beamlines/i24/serial/fixed_target/FT-gui-edm/Shutter_Control.edl +3 -3
- mx_bluesky/beamlines/i24/serial/fixed_target/FT-gui-edm/nudgechip.edl +24 -24
- mx_bluesky/beamlines/i24/serial/fixed_target/FT-gui-edm/pumpprobe-py3v1.edl +12 -12
- mx_bluesky/beamlines/i24/serial/fixed_target/i24ssx_Chip_Manager_py3v1.py +13 -12
- mx_bluesky/beamlines/i24/serial/fixed_target/i24ssx_moveonclick.py +10 -10
- mx_bluesky/beamlines/i24/serial/parameters/utils.py +1 -1
- mx_bluesky/beamlines/i24/serial/set_visit_directory.sh +1 -1
- mx_bluesky/beamlines/i24/serial/setup_beamline/pv.py +142 -135
- mx_bluesky/common/device_setup_plans/manipulate_sample.py +2 -2
- mx_bluesky/common/experiment_plans/common_grid_detect_then_xray_centre_plan.py +2 -2
- mx_bluesky/common/experiment_plans/inner_plans/udc_default_state.py +65 -0
- mx_bluesky/common/experiment_plans/oav_grid_detection_plan.py +12 -2
- mx_bluesky/common/experiment_plans/oav_snapshot_plan.py +2 -2
- mx_bluesky/common/external_interaction/alerting/__init__.py +13 -0
- mx_bluesky/common/external_interaction/alerting/_service.py +82 -0
- mx_bluesky/common/external_interaction/alerting/log_based_service.py +57 -0
- mx_bluesky/common/external_interaction/callbacks/common/grid_detection_callback.py +35 -17
- mx_bluesky/common/external_interaction/callbacks/sample_handling/sample_handling_callback.py +31 -6
- mx_bluesky/common/external_interaction/config_server.py +151 -54
- mx_bluesky/common/parameters/constants.py +27 -8
- mx_bluesky/common/parameters/gridscan.py +1 -1
- mx_bluesky/hyperion/__main__.py +50 -178
- mx_bluesky/hyperion/baton_handler.py +130 -69
- mx_bluesky/hyperion/device_setup_plans/dcm_pitch_roll_mirror_adjuster.py +29 -24
- mx_bluesky/hyperion/experiment_plans/hyperion_flyscan_xray_centre_plan.py +4 -1
- mx_bluesky/hyperion/experiment_plans/load_centre_collect_full_plan.py +17 -5
- mx_bluesky/hyperion/experiment_plans/pin_tip_centring_plan.py +1 -1
- mx_bluesky/hyperion/experiment_plans/robot_load_and_change_energy.py +6 -2
- mx_bluesky/hyperion/experiment_plans/rotation_scan_plan.py +2 -3
- mx_bluesky/hyperion/external_interaction/agamemnon.py +128 -73
- mx_bluesky/hyperion/external_interaction/alerting/__init__.py +0 -0
- mx_bluesky/hyperion/external_interaction/alerting/constants.py +12 -0
- mx_bluesky/hyperion/external_interaction/callbacks/__main__.py +9 -0
- mx_bluesky/hyperion/external_interaction/callbacks/alert_on_container_change.py +54 -0
- mx_bluesky/hyperion/external_interaction/callbacks/rotation/nexus_callback.py +2 -2
- mx_bluesky/hyperion/external_interaction/config_server.py +12 -31
- mx_bluesky/hyperion/parameters/cli.py +15 -3
- mx_bluesky/hyperion/parameters/components.py +7 -5
- mx_bluesky/hyperion/parameters/constants.py +20 -4
- mx_bluesky/hyperion/parameters/gridscan.py +22 -14
- mx_bluesky/hyperion/parameters/load_centre_collect.py +1 -14
- mx_bluesky/hyperion/parameters/robot_load.py +1 -4
- mx_bluesky/hyperion/parameters/rotation.py +1 -2
- mx_bluesky/hyperion/plan_runner.py +78 -0
- mx_bluesky/hyperion/runner.py +189 -0
- {mx_bluesky-1.5.2.dist-info → mx_bluesky-1.5.4.dist-info}/METADATA +4 -3
- {mx_bluesky-1.5.2.dist-info → mx_bluesky-1.5.4.dist-info}/RECORD +64 -55
- {mx_bluesky-1.5.2.dist-info → mx_bluesky-1.5.4.dist-info}/entry_points.txt +0 -2
- {mx_bluesky-1.5.2.dist-info → mx_bluesky-1.5.4.dist-info}/WHEEL +0 -0
- {mx_bluesky-1.5.2.dist-info → mx_bluesky-1.5.4.dist-info}/licenses/LICENSE +0 -0
- {mx_bluesky-1.5.2.dist-info → mx_bluesky-1.5.4.dist-info}/top_level.txt +0 -0
|
@@ -51,7 +51,7 @@ x 188
|
|
|
51
51
|
y 17
|
|
52
52
|
w 178
|
|
53
53
|
h 43
|
|
54
|
-
controlPv "
|
|
54
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
55
55
|
fgColor index 25
|
|
56
56
|
fgAlarm
|
|
57
57
|
bgColor index 5
|
|
@@ -69,7 +69,7 @@ x 188
|
|
|
69
69
|
y 88
|
|
70
70
|
w 198
|
|
71
71
|
h 23
|
|
72
|
-
controlPv "
|
|
72
|
+
controlPv "BL24I-EA-CHIP-01:SEND_STRING.AINP"
|
|
73
73
|
font "arial-medium-r-18.0"
|
|
74
74
|
fgColor index 16
|
|
75
75
|
bgColor index 14
|
|
@@ -37,8 +37,8 @@ selectColor index 15
|
|
|
37
37
|
inconsistentColor index 14
|
|
38
38
|
topShadowColor index 0
|
|
39
39
|
botShadowColor index 14
|
|
40
|
-
controlPv "
|
|
41
|
-
indicatorPv "
|
|
40
|
+
controlPv "BL24I-EA-CHIP-01:SHUTTER_CTRL"
|
|
41
|
+
indicatorPv "BL24I-EA-CHIP-01:SHUTTER_STATE_RBV"
|
|
42
42
|
font "arial-medium-r-18.0"
|
|
43
43
|
orientation "horizontal"
|
|
44
44
|
endObjectProperties
|
|
@@ -53,7 +53,7 @@ x 175
|
|
|
53
53
|
y 95
|
|
54
54
|
w 141
|
|
55
55
|
h 23
|
|
56
|
-
controlPv "
|
|
56
|
+
controlPv "BL24I-EA-CHIP-01:SHUTTER_STATE_RBV"
|
|
57
57
|
font "arial-medium-r-18.0"
|
|
58
58
|
fgColor index 14
|
|
59
59
|
bgColor index 0
|
|
@@ -71,7 +71,7 @@ x 143
|
|
|
71
71
|
y 291
|
|
72
72
|
w 166
|
|
73
73
|
h 33
|
|
74
|
-
controlPv "
|
|
74
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
75
75
|
fgColor index 25
|
|
76
76
|
fgAlarm
|
|
77
77
|
bgColor index 5
|
|
@@ -89,7 +89,7 @@ x 139
|
|
|
89
89
|
y 331
|
|
90
90
|
w 167
|
|
91
91
|
h 21
|
|
92
|
-
controlPv "
|
|
92
|
+
controlPv "BL24I-EA-CHIP-01:SEND_STRING.AINP"
|
|
93
93
|
font "arial-medium-r-16.0"
|
|
94
94
|
fgColor index 16
|
|
95
95
|
bgColor index 14
|
|
@@ -226,7 +226,7 @@ x 342
|
|
|
226
226
|
y 281
|
|
227
227
|
w 87
|
|
228
228
|
h 23
|
|
229
|
-
controlPv "
|
|
229
|
+
controlPv "BL24I-EA-CHIP-01:X.RBV"
|
|
230
230
|
font "arial-medium-r-18.0"
|
|
231
231
|
fgColor index 25
|
|
232
232
|
bgColor index 5
|
|
@@ -308,7 +308,7 @@ x 344
|
|
|
308
308
|
y 307
|
|
309
309
|
w 87
|
|
310
310
|
h 23
|
|
311
|
-
controlPv "
|
|
311
|
+
controlPv "BL24I-EA-CHIP-01:Y.RBV"
|
|
312
312
|
font "arial-medium-r-18.0"
|
|
313
313
|
fgColor index 25
|
|
314
314
|
bgColor index 5
|
|
@@ -350,7 +350,7 @@ x 343
|
|
|
350
350
|
y 333
|
|
351
351
|
w 87
|
|
352
352
|
h 23
|
|
353
|
-
controlPv "
|
|
353
|
+
controlPv "BL24I-EA-CHIP-01:Z.RBV"
|
|
354
354
|
font "arial-medium-r-18.0"
|
|
355
355
|
fgColor index 25
|
|
356
356
|
bgColor index 5
|
|
@@ -377,7 +377,7 @@ onColor index 3
|
|
|
377
377
|
offColor index 3
|
|
378
378
|
topShadowColor index 3
|
|
379
379
|
botShadowColor index 14
|
|
380
|
-
controlPv "
|
|
380
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
381
381
|
pressValue "#1J:-2500"
|
|
382
382
|
releaseValue "#1P"
|
|
383
383
|
3d
|
|
@@ -399,7 +399,7 @@ onColor index 3
|
|
|
399
399
|
offColor index 3
|
|
400
400
|
topShadowColor index 3
|
|
401
401
|
botShadowColor index 14
|
|
402
|
-
controlPv "
|
|
402
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
403
403
|
pressValue "#1J:-25000"
|
|
404
404
|
releaseValue "#1P"
|
|
405
405
|
3d
|
|
@@ -421,7 +421,7 @@ onColor index 3
|
|
|
421
421
|
offColor index 3
|
|
422
422
|
topShadowColor index 3
|
|
423
423
|
botShadowColor index 14
|
|
424
|
-
controlPv "
|
|
424
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
425
425
|
pressValue "#1J:-20"
|
|
426
426
|
releaseValue "#1P"
|
|
427
427
|
3d
|
|
@@ -443,7 +443,7 @@ onColor index 3
|
|
|
443
443
|
offColor index 3
|
|
444
444
|
topShadowColor index 3
|
|
445
445
|
botShadowColor index 14
|
|
446
|
-
controlPv "
|
|
446
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
447
447
|
pressValue "#1J:25000"
|
|
448
448
|
releaseValue "#1P"
|
|
449
449
|
3d
|
|
@@ -465,7 +465,7 @@ onColor index 3
|
|
|
465
465
|
offColor index 3
|
|
466
466
|
topShadowColor index 3
|
|
467
467
|
botShadowColor index 14
|
|
468
|
-
controlPv "
|
|
468
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
469
469
|
pressValue "#1J:2500"
|
|
470
470
|
releaseValue "#1P"
|
|
471
471
|
3d
|
|
@@ -487,7 +487,7 @@ onColor index 3
|
|
|
487
487
|
offColor index 3
|
|
488
488
|
topShadowColor index 3
|
|
489
489
|
botShadowColor index 14
|
|
490
|
-
controlPv "
|
|
490
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
491
491
|
pressValue "#1J:20"
|
|
492
492
|
releaseValue "#1P"
|
|
493
493
|
3d
|
|
@@ -509,7 +509,7 @@ onColor index 3
|
|
|
509
509
|
offColor index 3
|
|
510
510
|
topShadowColor index 3
|
|
511
511
|
botShadowColor index 14
|
|
512
|
-
controlPv "
|
|
512
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
513
513
|
pressValue "#2J:22000"
|
|
514
514
|
releaseValue "#2P"
|
|
515
515
|
3d
|
|
@@ -531,7 +531,7 @@ onColor index 3
|
|
|
531
531
|
offColor index 3
|
|
532
532
|
topShadowColor index 3
|
|
533
533
|
botShadowColor index 14
|
|
534
|
-
controlPv "
|
|
534
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
535
535
|
pressValue "#2J:2500"
|
|
536
536
|
releaseValue "#2P"
|
|
537
537
|
3d
|
|
@@ -553,7 +553,7 @@ onColor index 3
|
|
|
553
553
|
offColor index 3
|
|
554
554
|
topShadowColor index 3
|
|
555
555
|
botShadowColor index 14
|
|
556
|
-
controlPv "
|
|
556
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
557
557
|
pressValue "#2J:20"
|
|
558
558
|
releaseValue "#2P"
|
|
559
559
|
3d
|
|
@@ -575,7 +575,7 @@ onColor index 3
|
|
|
575
575
|
offColor index 3
|
|
576
576
|
topShadowColor index 3
|
|
577
577
|
botShadowColor index 14
|
|
578
|
-
controlPv "
|
|
578
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
579
579
|
pressValue "#2J:-22000"
|
|
580
580
|
releaseValue "#2P"
|
|
581
581
|
3d
|
|
@@ -597,7 +597,7 @@ onColor index 3
|
|
|
597
597
|
offColor index 3
|
|
598
598
|
topShadowColor index 3
|
|
599
599
|
botShadowColor index 14
|
|
600
|
-
controlPv "
|
|
600
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
601
601
|
pressValue "#2J:-2500"
|
|
602
602
|
releaseValue "#2P"
|
|
603
603
|
3d
|
|
@@ -619,7 +619,7 @@ onColor index 3
|
|
|
619
619
|
offColor index 3
|
|
620
620
|
topShadowColor index 3
|
|
621
621
|
botShadowColor index 14
|
|
622
|
-
controlPv "
|
|
622
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
623
623
|
pressValue "#2J:-20"
|
|
624
624
|
releaseValue "#2P"
|
|
625
625
|
3d
|
|
@@ -721,7 +721,7 @@ onColor index 3
|
|
|
721
721
|
offColor index 3
|
|
722
722
|
topShadowColor index 3
|
|
723
723
|
botShadowColor index 14
|
|
724
|
-
controlPv "
|
|
724
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
725
725
|
pressValue "#3J:250"
|
|
726
726
|
releaseValue "#2P"
|
|
727
727
|
3d
|
|
@@ -743,7 +743,7 @@ onColor index 3
|
|
|
743
743
|
offColor index 3
|
|
744
744
|
topShadowColor index 3
|
|
745
745
|
botShadowColor index 14
|
|
746
|
-
controlPv "
|
|
746
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
747
747
|
pressValue "#3J:-250"
|
|
748
748
|
releaseValue "#2P"
|
|
749
749
|
3d
|
|
@@ -805,8 +805,8 @@ onColor index 3
|
|
|
805
805
|
offColor index 3
|
|
806
806
|
topShadowColor index 3
|
|
807
807
|
botShadowColor index 14
|
|
808
|
-
controlPv "
|
|
809
|
-
pressValue "#
|
|
808
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
809
|
+
pressValue "#5hmz#6hmz#7hmz"
|
|
810
810
|
3d
|
|
811
811
|
font "arial-medium-r-18.0"
|
|
812
812
|
endObjectProperties
|
|
@@ -949,7 +949,7 @@ onColor index 3
|
|
|
949
949
|
offColor index 3
|
|
950
950
|
topShadowColor index 3
|
|
951
951
|
botShadowColor index 14
|
|
952
|
-
controlPv "
|
|
952
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
953
953
|
pressValue "ver"
|
|
954
954
|
3d
|
|
955
955
|
font "arial-medium-r-18.0"
|
|
@@ -1020,7 +1020,7 @@ onColor index 3
|
|
|
1020
1020
|
offColor index 3
|
|
1021
1021
|
topShadowColor index 3
|
|
1022
1022
|
botShadowColor index 14
|
|
1023
|
-
controlPv "
|
|
1023
|
+
controlPv "BL24I-EA-CHIP-01:PMAC_STRING"
|
|
1024
1024
|
pressValue "ver"
|
|
1025
1025
|
3d
|
|
1026
1026
|
font "arial-medium-r-18.0"
|
|
@@ -1165,6 +1165,6 @@ botShadowColor index 14
|
|
|
1165
1165
|
font "arial-medium-r-18.0"
|
|
1166
1166
|
numCmds 1
|
|
1167
1167
|
command {
|
|
1168
|
-
0 "caget
|
|
1168
|
+
0 "caget BL24I-EA-CHIP-01:X"
|
|
1169
1169
|
}
|
|
1170
1170
|
endObjectProperties
|
|
@@ -195,7 +195,7 @@ x 155
|
|
|
195
195
|
y 428
|
|
196
196
|
w 75
|
|
197
197
|
h 25
|
|
198
|
-
controlPv "
|
|
198
|
+
controlPv "BL24I-EA-CHIP-01:expTime"
|
|
199
199
|
font "arial-medium-r-16.0"
|
|
200
200
|
fgColor index 16
|
|
201
201
|
bgColor index 10
|
|
@@ -216,7 +216,7 @@ x 422
|
|
|
216
216
|
y 398
|
|
217
217
|
w 75
|
|
218
218
|
h 25
|
|
219
|
-
controlPv "
|
|
219
|
+
controlPv "BL24I-MO-IOC-01:GP104"
|
|
220
220
|
font "arial-medium-r-16.0"
|
|
221
221
|
fgColor index 16
|
|
222
222
|
bgColor index 10
|
|
@@ -553,7 +553,7 @@ x 422
|
|
|
553
553
|
y 431
|
|
554
554
|
w 75
|
|
555
555
|
h 25
|
|
556
|
-
controlPv "
|
|
556
|
+
controlPv "BL24I-MO-IOC-01:GP105"
|
|
557
557
|
font "arial-medium-r-16.0"
|
|
558
558
|
fgColor index 16
|
|
559
559
|
bgColor index 10
|
|
@@ -574,7 +574,7 @@ x 422
|
|
|
574
574
|
y 464
|
|
575
575
|
w 75
|
|
576
576
|
h 25
|
|
577
|
-
controlPv "
|
|
577
|
+
controlPv "BL24I-MO-IOC-01:GP106"
|
|
578
578
|
font "arial-medium-r-16.0"
|
|
579
579
|
fgColor index 16
|
|
580
580
|
bgColor index 10
|
|
@@ -595,7 +595,7 @@ x 422
|
|
|
595
595
|
y 495
|
|
596
596
|
w 75
|
|
597
597
|
h 25
|
|
598
|
-
controlPv "
|
|
598
|
+
controlPv "BL24I-MO-IOC-01:GP107"
|
|
599
599
|
font "arial-medium-r-16.0"
|
|
600
600
|
fgColor index 16
|
|
601
601
|
bgColor index 10
|
|
@@ -616,7 +616,7 @@ x 422
|
|
|
616
616
|
y 526
|
|
617
617
|
w 75
|
|
618
618
|
h 25
|
|
619
|
-
controlPv "
|
|
619
|
+
controlPv "BL24I-MO-IOC-01:GP108"
|
|
620
620
|
font "arial-medium-r-16.0"
|
|
621
621
|
fgColor index 16
|
|
622
622
|
bgColor index 10
|
|
@@ -658,7 +658,7 @@ x 156
|
|
|
658
658
|
y 382
|
|
659
659
|
w 75
|
|
660
660
|
h 25
|
|
661
|
-
controlPv "
|
|
661
|
+
controlPv "BL24I-MO-IOC-01:GP103"
|
|
662
662
|
font "helvetica-medium-r-18.0"
|
|
663
663
|
fgColor index 25
|
|
664
664
|
bgColor index 3
|
|
@@ -866,7 +866,7 @@ x 141
|
|
|
866
866
|
y 637
|
|
867
867
|
w 75
|
|
868
868
|
h 25
|
|
869
|
-
controlPv "
|
|
869
|
+
controlPv "BL24I-MO-IOC-01:GP109"
|
|
870
870
|
font "helvetica-medium-r-18.0"
|
|
871
871
|
fgColor index 25
|
|
872
872
|
bgColor index 3
|
|
@@ -1058,7 +1058,7 @@ fontAlign "center"
|
|
|
1058
1058
|
fgColor index 38
|
|
1059
1059
|
bgColor index 0
|
|
1060
1060
|
useDisplayBg
|
|
1061
|
-
visPv "
|
|
1061
|
+
visPv "BL24I-MO-IOC-01:GP109"
|
|
1062
1062
|
visMin "0.00001"
|
|
1063
1063
|
visMax "999"
|
|
1064
1064
|
value {
|
|
@@ -1158,7 +1158,7 @@ x 144
|
|
|
1158
1158
|
y 124
|
|
1159
1159
|
w 75
|
|
1160
1160
|
h 25
|
|
1161
|
-
controlPv "
|
|
1161
|
+
controlPv "BL24I-MO-IOC-01:GP103"
|
|
1162
1162
|
font "helvetica-medium-r-18.0"
|
|
1163
1163
|
fgColor index 25
|
|
1164
1164
|
bgColor index 3
|
|
@@ -1451,7 +1451,7 @@ x 144
|
|
|
1451
1451
|
y 155
|
|
1452
1452
|
w 75
|
|
1453
1453
|
h 25
|
|
1454
|
-
controlPv "
|
|
1454
|
+
controlPv "BL24I-MO-IOC-01:GP110"
|
|
1455
1455
|
font "helvetica-medium-r-18.0"
|
|
1456
1456
|
fgColor index 25
|
|
1457
1457
|
bgColor index 3
|
|
@@ -1573,7 +1573,7 @@ fgColor index 14
|
|
|
1573
1573
|
bgColor index 3
|
|
1574
1574
|
topShadowColor index 1
|
|
1575
1575
|
botShadowColor index 8
|
|
1576
|
-
controlPv "
|
|
1576
|
+
controlPv "BL24I-MO-IOC-01:GP111"
|
|
1577
1577
|
font "arial-medium-r-18.0"
|
|
1578
1578
|
numItems 2
|
|
1579
1579
|
symbolTag {
|
|
@@ -16,7 +16,7 @@ from dodal.common import inject
|
|
|
16
16
|
from dodal.devices.attenuator.attenuator import ReadOnlyAttenuator
|
|
17
17
|
from dodal.devices.i24.beamstop import Beamstop, BeamstopPositions
|
|
18
18
|
from dodal.devices.i24.dual_backlight import BacklightPositions, DualBacklight
|
|
19
|
-
from dodal.devices.i24.pmac import PMAC, EncReset, LaserSettings
|
|
19
|
+
from dodal.devices.i24.pmac import CS_STR, PMAC, EncReset, LaserSettings
|
|
20
20
|
from dodal.devices.motors import YZStage
|
|
21
21
|
|
|
22
22
|
from mx_bluesky.beamlines.i24.serial.fixed_target.ft_utils import (
|
|
@@ -104,7 +104,7 @@ def initialise_stages(
|
|
|
104
104
|
if i == 100:
|
|
105
105
|
# Do not clear visit PV
|
|
106
106
|
continue
|
|
107
|
-
pvar = "
|
|
107
|
+
pvar = "BL24I-MO-IOC-01:GP" + str(i)
|
|
108
108
|
caput(pvar, 0)
|
|
109
109
|
sys.stdout.write(".")
|
|
110
110
|
sys.stdout.flush()
|
|
@@ -457,14 +457,14 @@ def load_stock_map(map_choice: str = "clear") -> MsgGenerator:
|
|
|
457
457
|
|
|
458
458
|
SSX_LOGGER.info("Clearing GP 10-74") # Actually 11-44
|
|
459
459
|
for i in range(1, 65):
|
|
460
|
-
pvar = "
|
|
460
|
+
pvar = "BL24I-MO-IOC-01:GP" + str(i + 10)
|
|
461
461
|
caput(pvar, 0)
|
|
462
462
|
sys.stdout.write(".")
|
|
463
463
|
sys.stdout.flush()
|
|
464
464
|
SSX_LOGGER.info("Map cleared")
|
|
465
465
|
SSX_LOGGER.info(f"Loading Map Choice {map_choice}")
|
|
466
466
|
for i in map_dict[map_choice]:
|
|
467
|
-
pvar = "
|
|
467
|
+
pvar = "BL24I-MO-IOC-01:GP" + str(i + 10)
|
|
468
468
|
caput(pvar, 1)
|
|
469
469
|
SSX_LOGGER.debug("Load stock map done.")
|
|
470
470
|
yield from bps.null()
|
|
@@ -529,7 +529,7 @@ def load_lite_map() -> MsgGenerator:
|
|
|
529
529
|
block_name = entry[0]
|
|
530
530
|
yesno = entry[1]
|
|
531
531
|
block_num = block_dict[block_name]
|
|
532
|
-
pvar = "
|
|
532
|
+
pvar = "BL24I-MO-IOC-01:GP" + str(int(block_num) + 10)
|
|
533
533
|
SSX_LOGGER.info(f"Block: {block_name} \tScanned: {yesno} \tPVAR: {pvar}")
|
|
534
534
|
SSX_LOGGER.debug("Load lite map done")
|
|
535
535
|
yield from bps.null()
|
|
@@ -604,7 +604,6 @@ def laser_control(laser_setting: str, pmac: PMAC = inject("pmac")) -> MsgGenerat
|
|
|
604
604
|
SSX_LOGGER.info("Laser 1 /BNC2 shutter is open")
|
|
605
605
|
# Use M712 = 0 if triggering on falling edge. M712 =1 if on rising edge
|
|
606
606
|
# Be sure to also change laser1off
|
|
607
|
-
# caput(pv.me14e_pmac_str, ' M712=0 M711=1')
|
|
608
607
|
yield from bps.abs_set(pmac.laser, LaserSettings.LASER_1_ON, wait=True)
|
|
609
608
|
|
|
610
609
|
elif laser_setting == "laser1off":
|
|
@@ -845,7 +844,7 @@ def cs_maker(pmac: PMAC = inject("pmac")) -> MsgGenerator:
|
|
|
845
844
|
yield from bps.sleep(2.5)
|
|
846
845
|
SSX_LOGGER.debug(f"Chip_type is {chip_type}")
|
|
847
846
|
if chip_type == 0:
|
|
848
|
-
yield from bps.abs_set(pmac.pmac_string, "!x0.4y0.4", wait=True)
|
|
847
|
+
yield from bps.abs_set(pmac.pmac_string, f"{CS_STR}!x0.4y0.4", wait=True)
|
|
849
848
|
yield from bps.sleep(2.5)
|
|
850
849
|
yield from bps.trigger(pmac.home, wait=True)
|
|
851
850
|
else:
|
|
@@ -856,9 +855,9 @@ def cs_maker(pmac: PMAC = inject("pmac")) -> MsgGenerator:
|
|
|
856
855
|
|
|
857
856
|
def cs_reset(pmac: PMAC = inject("pmac")) -> MsgGenerator:
|
|
858
857
|
"""Used to clear CS when using Custom Chip"""
|
|
859
|
-
cs1 = "#
|
|
860
|
-
cs2 = "#
|
|
861
|
-
cs3 = "#
|
|
858
|
+
cs1 = "#5->10000X+0Y+0Z"
|
|
859
|
+
cs2 = "#6->+0X-10000Y+0Z"
|
|
860
|
+
cs3 = "#7->0X+0Y-10000Z"
|
|
862
861
|
strg = "\n".join([cs1, cs2, cs3])
|
|
863
862
|
print(strg)
|
|
864
863
|
yield from set_pmac_strings_for_cs(pmac, {"cs1": cs1, "cs2": cs2, "cs3": cs3})
|
|
@@ -881,7 +880,7 @@ def set_pmac_strings_for_cs(pmac: PMAC, cs_str: dict):
|
|
|
881
880
|
|
|
882
881
|
Note. On the PMAC the axes allocations are: #1 - X, #2 - Y, #3 - Z.
|
|
883
882
|
"""
|
|
884
|
-
yield from bps.abs_set(pmac.pmac_string,
|
|
883
|
+
yield from bps.abs_set(pmac.pmac_string, CS_STR, wait=True)
|
|
885
884
|
yield from bps.abs_set(pmac.pmac_string, cs_str["cs1"], wait=True)
|
|
886
885
|
yield from bps.abs_set(pmac.pmac_string, cs_str["cs2"], wait=True)
|
|
887
886
|
yield from bps.abs_set(pmac.pmac_string, cs_str["cs3"], wait=True)
|
|
@@ -941,7 +940,9 @@ def block_check(pmac: PMAC = inject("pmac")) -> MsgGenerator:
|
|
|
941
940
|
break
|
|
942
941
|
block, x, y = entry
|
|
943
942
|
SSX_LOGGER.debug(f"Block: {block} -> (x={x} y={y})")
|
|
944
|
-
yield from bps.abs_set(
|
|
943
|
+
yield from bps.abs_set(
|
|
944
|
+
pmac.pmac_string, f"{CS_STR}!x{x}y{y}", wait=True
|
|
945
|
+
)
|
|
945
946
|
yield from bps.sleep(0.4)
|
|
946
947
|
else:
|
|
947
948
|
SSX_LOGGER.warning("Block Check Aborted due to GP 9 not equalling 0")
|
|
@@ -59,8 +59,8 @@ def _move_on_mouse_click_plan(
|
|
|
59
59
|
SSX_LOGGER.info(f"Zoom calibrator {zoomcalibrator}")
|
|
60
60
|
SSX_LOGGER.info(f"Beam centre {beamX} {beamY}")
|
|
61
61
|
SSX_LOGGER.info(f"Moving X and Y {xmove} {ymove}")
|
|
62
|
-
xmovepmacstring = "#
|
|
63
|
-
ymovepmacstring = "#
|
|
62
|
+
xmovepmacstring = "&2#5J:" + str(xmove)
|
|
63
|
+
ymovepmacstring = "&2#6J:" + str(ymove)
|
|
64
64
|
yield from bps.abs_set(pmac.pmac_string, xmovepmacstring, wait=True)
|
|
65
65
|
yield from bps.abs_set(pmac.pmac_string, ymovepmacstring, wait=True)
|
|
66
66
|
|
|
@@ -195,21 +195,21 @@ def start_viewer(oav: OAV, pmac: PMAC, RE: RunEngine, oav1: str = OAV1_CAM):
|
|
|
195
195
|
manager.block_check()
|
|
196
196
|
) # doesn't work well for blockcheck as image doesn't update
|
|
197
197
|
if k == 104: # H
|
|
198
|
-
RE(bps.abs_set(pmac.pmac_string, "#
|
|
198
|
+
RE(bps.abs_set(pmac.pmac_string, "&2#6J:-10", wait=True))
|
|
199
199
|
if k == 110: # N
|
|
200
|
-
RE(bps.abs_set(pmac.pmac_string, "#
|
|
200
|
+
RE(bps.abs_set(pmac.pmac_string, "&2#6J:10", wait=True))
|
|
201
201
|
if k == 109: # M
|
|
202
|
-
RE(bps.abs_set(pmac.pmac_string, "#
|
|
202
|
+
RE(bps.abs_set(pmac.pmac_string, "&2#5J:-10", wait=True))
|
|
203
203
|
if k == 98: # B
|
|
204
|
-
RE(bps.abs_set(pmac.pmac_string, "#
|
|
204
|
+
RE(bps.abs_set(pmac.pmac_string, "&2#5J:10", wait=True))
|
|
205
205
|
if k == 105: # I
|
|
206
|
-
RE(bps.abs_set(pmac.pmac_string, "#
|
|
206
|
+
RE(bps.abs_set(pmac.pmac_string, "&2#7J:-150", wait=True))
|
|
207
207
|
if k == 111: # O
|
|
208
|
-
RE(bps.abs_set(pmac.pmac_string, "#
|
|
208
|
+
RE(bps.abs_set(pmac.pmac_string, "&2#7J:150", wait=True))
|
|
209
209
|
if k == 117: # U
|
|
210
|
-
RE(bps.abs_set(pmac.pmac_string, "#
|
|
210
|
+
RE(bps.abs_set(pmac.pmac_string, "&2#7J:-1000", wait=True))
|
|
211
211
|
if k == 112: # P
|
|
212
|
-
RE(bps.abs_set(pmac.pmac_string, "#
|
|
212
|
+
RE(bps.abs_set(pmac.pmac_string, "&2#7J:1000", wait=True))
|
|
213
213
|
if k == 0x1B: # esc
|
|
214
214
|
cv.destroyWindow("OAV1view")
|
|
215
215
|
print("Pressed escape. Closing window")
|
|
@@ -7,7 +7,7 @@ from mx_bluesky.beamlines.i24.serial.parameters.experiment_parameters import (
|
|
|
7
7
|
)
|
|
8
8
|
from mx_bluesky.beamlines.i24.serial.setup_beamline import caget, pv
|
|
9
9
|
|
|
10
|
-
OXFORD_BLOCKS_PVS = [f"
|
|
10
|
+
OXFORD_BLOCKS_PVS = [f"BL24I-MO-IOC-01:GP{i}" for i in range(11, 75)]
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class EmptyMapError(Exception):
|