Skip to content
Snippets Groups Projects
Commit 1465b581 authored by Your Name's avatar Your Name
Browse files

debug

parent 91ba3081
No related branches found
No related tags found
1 merge request!11Main merge jmcchesn-main-patch branch with main
......@@ -32,7 +32,7 @@ class Vortex:
#set hi and low
caput(self._vortex_pv+'mca1.R0LO',round(center-width/2))
caput(self._vortex_pv+'mca1.R0HI',round(center-width/2))
caput(self._vortex_pv+'mca1.R0HI',round(center+width/2))
#pv to store energy set point
caput(self._calc_pv,energy)
......
......@@ -60,7 +60,7 @@ def align_d4(th,**kwargs):
mvz(z0)
#fitting
scanNum=last_mda()
tth0 =fit_mda(scanNum,kwargs['detNum'],'poly',plot=kwargs['plot'])
tth0 =fit_mda(scanNum,kwargs['detNum'],'gauss',plot=kwargs['plot'])
print('tth0 = '+str(round(tth0,3)))
if kwargs['sound']:
play_sound()
......@@ -150,7 +150,7 @@ def align_z180(omega_off,**kwargs):
dscanz(-750,750,50)
sleep(1)
scanNum=last_mda()
z180 = fit_mda(scanNum,kwargs['detNum'],'poly',plot=kwargs['plot'])
z180 = fit_mda(scanNum,kwargs['detNum'],'erf',plot=kwargs['plot'])
if kwargs['sound']:
play_sound()
return z180
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment