no_op (NoOpSolver)#
Caution
work-in-progress
Backend: no_op ("no_op"
)
no reciprocal-space conversions
Example:
import hklpy2
SolverClass = hklpy2.get_solver("no_op")
noop_solver = SolverClass()
|
|
- class hklpy2.backends.no_op.NoOpSolver(geometry: str, **kwargs)[source]#
Bases:
SolverBase
"no_op"
(any OS) no transformations.Solver that has no reciprocal space transformations.
Python Methods
addReflection
(reflection)Add coordinates of a diffraction condition (a reflection).
calculate_UB
(r1, r2)Calculate the UB (orientation) matrix with two reflections.
Ordered list of any extra axis names (such as x, y, z).
forward
(pseudos)Compute list of solutions(reals) from pseudos (hkl -> [angles]).
Ordered list of the geometry names.
inverse
(reals)Compute tuple of pseudos from reals (angles -> hkl).
Ordered list of the pseudo axis names (such as h, k, l).
Ordered list of the real axis names (such as th, tth).
refineLattice
(reflections)No refinement.
Remove all reflections.
Python Properties
Diffractometer geometry.
Crystal lattice parameters.
Diffractometer geometry operation mode for
forward()
.List of the geometry operating modes.
Crystalline sample.
- property UB#
Orientation matrix (3x3).
- addReflection(reflection: Reflection)[source]#
Add coordinates of a diffraction condition (a reflection).
- calculate_UB(r1, r2)[source]#
Calculate the UB (orientation) matrix with two reflections.
The method of Busing & Levy, Acta Cryst 22 (1967) 457.
- property extra_axis_names#
Ordered list of any extra axis names (such as x, y, z).
- forward(pseudos: dict) list[dict[str, float]] [source]#
Compute list of solutions(reals) from pseudos (hkl -> [angles]).
- classmethod geometries()[source]#
Ordered list of the geometry names.
EXAMPLES:
>>> from hklpy2 import get_solver >>> Solver = get_solver("no_op") >>> Solver.geometries() [] >>> solver = Solver("TH TTH Q") >>> solver.geometries() []
- property mode: str#
Diffractometer geometry operation mode for
forward()
.A mode defines which axes will be modified by the
forward()
computation.
- property modes#
List of the geometry operating modes.
- name = 'no_op'#
Name of this Solver.
- property pseudo_axis_names#
Ordered list of the pseudo axis names (such as h, k, l).
- property real_axis_names#
Ordered list of the real axis names (such as th, tth).
- refineLattice(reflections: list[Reflection]) None [source]#
No refinement.
- version = '0.0.25.dev83+gf26812c'#
Version of this Solver.