NSLS-II-ESM-1 / profile_collection

IPython startup files for collection at ESM-1
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Eliminate all caput usages in the startup files #43

Open mrakitin opened 4 years ago

mrakitin commented 4 years ago

Found quite a lot.

xf21id1@xf21id1-ws1:~/.ipython/profile_collection$ git grep "caput"
startup/40-ESM_plans_elio.py:    caput('XF:21ID-PPS{Sh:FE}Cmd:Cls-Cmd', 1)
startup/40-ESM_plans_elio.py:    #caput XF:21IDC-BI{EM:7}EM180:Acquire 0
startup/40-ESM_plans_elio.py:    caput('XF:21IDC-BI{EM:7}EM180:CurrentOffset1', value)
startup/40-ESM_plans_elio.py:    caput('XF:21ID-PPS{Sh:FE}Cmd:Opn-Cmd', 1)
startup/40-ESM_plans_elio.py:    os.system('caput XF:21ID-PPS{Sh:FE}Cmd:Cls-Cmd 1')
startup/40-ESM_plans_elio.py:    os.system('caput XF:21ID-PPS{Sh:FE}Cmd:Opn-Cmd 1')
startup/40-ESM_plans_elio.py:#        os.system('caput XF:21IDB-OP{Mono:1-Ax:8_MP}Mtr.OFF '+ off_M2[GRT_name])    # set offset for M2
startup/40-ESM_plans_elio.py:#        os.system('caput XF:21IDB-OP{Mono:1-Ax:8_GP}Mtr.OFF '+ off_GRT[GRT_name])   # set offset for GRT
startup/40-ESM_plans_elio.py:#        os.system('caput XF:21IDB-OP{Mono:1}:LINES:SET ' + GRT_name)                # tells to the PGM software which grating
startup/esm.py:    caput('XF:21ID-PPS{Sh:FE}Cmd:Cls-Cmd', 1)
startup/esm.py:    #caput XF:21IDC-BI{EM:7}EM180:Acquire 0
startup/esm.py:    caput('XF:21IDC-BI{EM:7}EM180:CurrentOffset1', value)
startup/esm.py:    caput('XF:21ID-PPS{Sh:FE}Cmd:Opn-Cmd', 1)
startup/esm.py:    os.system('caput XF:21ID-PPS{Sh:FE}Cmd:Cls-Cmd 1')
startup/esm.py:    os.system('caput XF:21ID-PPS{Sh:FE}Cmd:Opn-Cmd 1')
startup/esm.py:        os.system('caput XF:21IDB-OP{Mono:1-Ax:8_MP}Mtr.OFF '+ off_M2[GRT_name])    # set offset for M2
startup/esm.py:        os.system('caput XF:21IDB-OP{Mono:1-Ax:8_GP}Mtr.OFF '+ off_GRT[GRT_name])   # set offset for GRT
startup/esm.py:        os.system('caput XF:21IDB-OP{Mono:1}:LINES:SET ' + GRT_name)                # tells to the PGM software which grating
mrakitin commented 4 years ago

Also, https://github.com/NSLS-II-ESM-1/profile_collection/issues/42#issuecomment-680182984.