File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ from virtaccl .site .SNS_Linac .virtual_SNS_linac import build_sns
2+ from virtaccl .site .BTF .btf_virtual_accelerator import build_btf
3+
4+
5+ sns = build_sns ()
6+
7+ print (sns .get_value ("SCL_Mag:DCH00:B" ), sns .get_value ("SCL_Mag:DCH01:B" ), sns .get_value ("SCL_Diag:BPM04:xAvg" ))
8+ sns .set_values ({"SCL_Mag:PS_DCH00:B_Set" : 0.01 , "SCL_Mag:PS_DCH01:B_Set" : - 0.01 })
9+ print (sns .get_value ("SCL_Mag:DCH00:B" ), sns .get_value ("SCL_Mag:DCH01:B" ), sns .get_value ("SCL_Diag:BPM04:xAvg" ))
10+
11+
12+ btf = build_btf ()
13+
14+ print (btf .get_value ("BTF_MEBT_Mag:DCH01:B" ), btf .get_value ("BTF_MEBT_Mag:DCH02:B" ), btf .get_value ("ITSF_Diag:BPM04_4:xAvg" ))
15+ btf .set_values ({"BTF_MEBT_Mag:PS_DCH01:I_Set" : 2 , "BTF_MEBT_Mag:PS_DCH02:I_Set" : 3 })
16+ print (btf .get_value ("BTF_MEBT_Mag:DCH01:B" ), btf .get_value ("BTF_MEBT_Mag:DCH02:B" ), btf .get_value ("ITSF_Diag:BPM04_4:xAvg" ))
17+
You can’t perform that action at this time.
0 commit comments