Skip to content

Commit 3b0a59e

Browse files
committed
I07-366 Rationalise DIFF1 motor names
The ScannableMotor names in GDA will no longer be named specific to the mode, instead will be using the name on the Epics scren prefixed with "diff1".
1 parent eee6184 commit 3b0a59e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

startup/i07EH1h.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from diffcalc.settings import NUNAME
33

44
if GDA:
5-
from __main__ import diff1vdelta, diff1halpha, diff1vgamma, diff1homega, dcm1energy # @UnresolvedImport
5+
from __main__ import diff1delta, diff1chi, diff1gamma, diff1theta, dcm1energy # @UnresolvedImport
66

77
from diffcalc.hkl.you.geometry import YouRemappedGeometry
88

@@ -34,11 +34,11 @@ def __init__(self, beamline_axes_transform=None):
3434
### Create dummy scannables ###
3535
if GDA:
3636
###map GDA scannable to diffcalc axis name###
37-
_fourc = ScannableGroup('_fourc', (diff1vdelta, diff1vgamma, diff1halpha, diff1homega))
38-
delta=_fourc.diff1vdelta
39-
gam=_fourc.diff1vgamma
40-
eta=_fourc.diff1halpha
41-
phi=_fourc.diff1homega
37+
_fourc = ScannableGroup('_fourc', (diff1delta, diff1gamma, diff1chi, diff1theta))
38+
delta=_fourc.diff1delta
39+
gam=_fourc.diff1gamma
40+
eta=_fourc.diff1chi
41+
phi=_fourc.diff1theta
4242
en=dcm1energy
4343
if float(en.getPosition()) == 0: # no energy value - dummy mode
4444
en(800)

startup/i07EH1v.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from diffcalc.settings import NUNAME
33

44
if GDA:
5-
from __main__ import diff1vdelta, diff1valpha, diff1vgamma, diff1vomega, dcm1energy # @UnresolvedImport
5+
from __main__ import diff1delta, diff1alpha, diff1gamma, diff1omega, dcm1energy # @UnresolvedImport
66

77
from diffcalc.hkl.you.geometry import YouGeometry, YouPosition
88

@@ -28,11 +28,11 @@ def internal_position_to_physical_angles(self, internal_position):
2828
### Create dummy scannables ###
2929
if GDA:
3030
###map GDA scannable to diffcalc axis name###
31-
_fourc = ScannableGroup('_fourc', (diff1vdelta, diff1vgamma, diff1valpha, diff1vomega))
32-
delta=_fourc.diff1vdelta
33-
gam=_fourc.diff1vgamma
34-
mu=_fourc.diff1valpha
35-
phi=_fourc.diff1vomega
31+
_fourc = ScannableGroup('_fourc', (diff1delta, diff1gamma, diff1alpha, diff1omega))
32+
delta=_fourc.diff1delta
33+
gam=_fourc.diff1gamma
34+
mu=_fourc.diff1alpha
35+
phi=_fourc.diff1omega
3636
en=dcm1energy
3737
else:
3838
#Create dummy axes to run outside GDA in IPython#

0 commit comments

Comments
 (0)