| Module: position | goniometer/position.py | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Goniometer positions, calculations and conversions.Positions are normally constructed by the Position() factory function from this module. None of the other classes and routines available in this module are widely used outside this implementation. The Position() objects constructed by the Position() factory can be:
|
Zero
|
Zero ( hardware=None ) Return a zero-position in Kappa angles.
|
angleinrange
|
angleinrange (
a,
amin,
amax,
crit=0.001 * projtls.degrees,
)
Return true if
|
fromDatabase
|
fromDatabase ( hardware, dbobj ) Read position from database.
|
movetorange
|
movetorange (
a,
amin,
amax,
)
Bring angle
|
normalangle
|
normalangle ( a ) Bring angle
|
rangeastype
|
rangeastype (
p1,
p2,
type,
crit=0.001 * projtls.degrees,
)
Convert positions
|
sameangle
|
sameangle (
a1,
a2,
crit=0.003 * projtls.degrees,
)
Return true if
|
sign
|
sign ( a ) Return -1.0 for negative numbers, 1.0 otherwise.
Classes
|
|
|