Script execution
This commit is contained in:
@@ -1,36 +1,11 @@
|
||||
run("diffutils")
|
||||
###################################################################################################\
|
||||
#Setup
|
||||
###################################################################################################
|
||||
|
||||
class FourCircleX04SA_V(YouGeometry):
|
||||
"""For a diffractometer with angles:
|
||||
mu, delta, nu, eta
|
||||
alpha delta gamma omegaV
|
||||
"""
|
||||
def __init__(self):
|
||||
#YouGeometry.__init__(self, 'fourcv', {'phi': 0, 'chi': 0, 'eta': 0,})
|
||||
YouGeometry.__init__(self, 'fourcv', {'phi': 0, 'chi': 0})
|
||||
#diffcalc.hkl.you.constraints.NUNAME = 'gam'
|
||||
|
||||
def physical_angles_to_internal_position(self, physical_angle_tuple):
|
||||
# mu, delta, nu, eta, chi, phi
|
||||
mu, delta, nu, eta = physical_angle_tuple
|
||||
return YouPosition(mu, delta, nu, eta, 0, 0)
|
||||
|
||||
def internal_position_to_physical_angles(self, internal_position):
|
||||
mu, delta, nu, eta, _, _ = internal_position.totuple()
|
||||
return mu, delta, nu, eta
|
||||
|
||||
|
||||
|
||||
|
||||
###################################################################################################\
|
||||
#Setup
|
||||
###################################################################################################
|
||||
|
||||
#alpha, delta, gamma, omegaV
|
||||
setup_diff(fourcv, energy, FourCircleX04SA_V(), ("mu", "delta", "gam", "eta"))
|
||||
setup_diff(fourcv, energy, None, ("mu", "delta", "gam", "eta"))
|
||||
print_axis_setup()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user