code
stringlengths
3
6.57k
caput(pv.me14e_stage_y, -26.49)
caput(pv.me14e_stage_y, +24.968)
caput(pv.me14e_stage_x, 0.0)
caput(pv.me14e_stage_y, 0.0)
caput(pv.me14e_stage_x, 24.60)
caput(pv.me14e_stage_y, 0.0)
caput(pv.me14e_stage_x, 0.0)
caput(pv.me14e_stage_y, 24.60)
caput(pv.me14e_stage_x, 0.0)
caput(pv.me14e_stage_y, 0.0)
caput(pv.me14e_stage_x, +17.175)
caput(pv.me14e_stage_y, 0.0)
caput(pv.me14e_stage_x, 0.0)
caput(pv.me14e_stage_y, +17.175)
caput(pv.me14e_pmac_str, '!x0y0z0')
caput(pv.me14e_stage_x, 1.0)
caput(pv.me14e_stage_y, 1.0)
caput(pv.me14e_stage_z, 1.0)
caput(pv.me14e_filter, -25)
caput(pv.me14e_stage_x, -25.0)
caput(pv.me14e_stage_y, -25.0)
caput(pv.me14e_stage_z, 0.0)
caput(pv.me14e_pmac_str, 'M512=0 M511=1')
caput(pv.absb_mp_select, 'Robot')
caput(pv.ap1_mp_select, 'Robot')
caput(pv.blight_mp_select, 'Out')
caput(pv.det_z, 1480)
caput(pv.me14e_filter, 25)
caput(pv.me14e_stage_x, 0.0)
caput(pv.me14e_stage_y, 0.0)
caput(pv.me14e_stage_z, 0.0)
caput(pv.me14e_pmac_str, 'M512=0 M511=1')
caput(pv.absb_mp_select, 'Data Collection')
caput(pv.ap1_mp_select, 'In')
caput(pv.blight_mp_select, 'In')
caput(pv.me14e_filter, 25)
caput(pv.me14e_filter, -25)
caput(pv.me14e_pmac_str, 'M512=0 M511=1')
caput(pv.me14e_pmac_str, ' M512=1 M511=1')
scrape_mtr_directions()
open(param_path + 'motor_direction.txt', 'r')
f.readlines()
line.startswith('mtr1')
float(int(line.split('=')
line.startswith('mtr2')
float(int(line.split('=')
line.startswith('mtr3')
float(int(line.split('=')
f.close()
fiducial(point)
scrape_mtr_directions()
caget(pv.me14e_stage_x + '.RBV')
caget(pv.me14e_stage_y + '.RBV')
caget(pv.me14e_stage_z + '.RBV')
caget(pv.me14e_stage_x + '.RRBV')
caget(pv.me14e_stage_y + '.RRBV')
caget(pv.me14e_stage_z + '.RRBV')
open(param_path + 'fiducial_%s.txt' %point, 'w')
f.write('MTR\tRBV\tRAW\tCorr\tf_value\n')
f.write('MTR1\t%1.4f\t%i\t%i\t%1.4f\n' % (rbv_1, raw_1, mtr1_dir, f_x)
f.write('MTR2\t%1.4f\t%i\t%i\t%1.4f\n' % (rbv_2, raw_2, mtr2_dir, f_y)
f.write('MTR3\t%1.4f\t%i\t%i\t%1.4f' % (rbv_3, raw_3, mtr3_dir, f_z)
f.close()
scrape_mtr_fiducials(point)
open(param_path+'fiducial_%i.txt' %point,'r')
f.readlines()
float(f_lines[0].rsplit()
float(f_lines[1].rsplit()
float(f_lines[2].rsplit()
f.close()
cs_maker()
caget(pv.me14e_gp1)
scrape_mtr_directions()
scrape_mtr_fiducials(1)
scrape_mtr_fiducials(2)
Pitch (Rx*Ry*Rz)
TEST (CLOCKWISE)
upsidedown (I24)
np.sqrt((1 - Sz**2)
np.degrees(np.arcsin(Sz1)
np.degrees(np.arcsin(Sz2)
np.degrees(np.arcsin(Sz)
np.degrees(np.arccos(Cz)
np.sqrt((1 - Sy**2)
np.degrees(np.arcsin(Sy)
np.degrees(np.arccos(Cy)
upsidedown (I24)
np.sqrt((1 - Sx**2)
np.degrees(np.arcsin(Sx)
np.degrees(np.arccos(Cx)
orientation (sat on table facing away)
position (upside down facing away)
orientation (sat on table facing away)
orientation (sat on table facing away)
np.degrees(np.arcsin(Sz1)
np.degrees(np.arcsin(Sz2)
np.degrees(np.arcsin((Sz1+Sz2)
np.sin((skew/2)
np.cos((skew/2)
join([cs1, cs2, cs3])