35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
|
|
class PhysicalLocation():
|
|
def __init__(self, X, Y, Z, theta, tilt, phi):
|
|
self.X = X
|
|
self.Y = Y
|
|
self.Z = Z
|
|
self.theta = theta
|
|
self.tilt = tilt
|
|
self.phi = phi
|
|
|
|
def move_to_location(self):
|
|
ManipulatorX.move(self.X)
|
|
ManipulatorY.move(self.Y)
|
|
ManipulatorZ.move(self.Z)
|
|
ManipulatorTheta.move(self.theta)
|
|
ManipulatorTilt.move(self.tilt)
|
|
ManipulatorPhi.move(self.phi)
|
|
|
|
#VARS
|
|
sample = PhysicalLocation(-4.1,-0.5,115.1,-8.8,0.7,-90.0)
|
|
goldReference = PhysicalLocation(-3.4,4.4,111.6,-8.8,0.7,90.0)
|
|
dosing = PhysicalLocation(-4.1,-0.5,115.1,51.0,0.7,-90.0)
|
|
|
|
sample.move_to_location()
|
|
|
|
energies = [300,400,500]
|
|
|
|
for e in energies:
|
|
|
|
goldReference.move_to_location()
|
|
thisregion = {'name': 'Au', 'ephot': 1237.7, 'efix': 1222.1, 'epass': 50., 'tstep': 5., 'iter': 1, 'cis': False}
|
|
|
|
|
|
sample.move_to_location()
|
|
thisregion = {'name': 'In3d', 'ephot': 1237.7, 'efix': 1222.1, 'epass': 50., 'tstep': 5., 'iter': 1, 'cis': False} |