ANASEN_analysis/eloss_calculations/pyautogui+lise/eloss_lise_4He.py
Sudarsan Balakrishnan 98b438a54e BIG FIX
--------
- Significant typo in beam eloss calculation, fixed. Reaction data shows Ex values that make sense.
- Per-anode-wire calibration implemented inline in the code. Needs to go live in its own gainmatch file.
- Per-anode-wire cuts being considered. Will need updation in the future.
2026-07-21 12:16:16 -04:00

23 lines
539 B
Python

import pyautogui as pag
import time
#785,178 is where 'material' is
#1059,533 is where thickness is
#909,214 is where energy remain is
#1414,710 is where final window is
pos=570
while pos<620:
pag.click(595,52)
pag.doubleClick(1036,531)
pag.hotkey("ctrl","a")
pag.press("delete")
pag.write(str(pos))
#time.sleep(0.1)
pag.press("return")
pag.tripleClick(718,75)
pag.hotkey("ctrl","c")
pag.click(1678,549)
pag.write(str(pos)+" ")
pag.hotkey("ctrl","v")
pag.press("return")
pos=pos+1.0