hklpy2.backends.no_op#
“no_op” solver for testing.
no reciprocal-space conversions
Example:
import hklpy2
SolverClass = hklpy2.get_solver("no_op")
noop_solver = SolverClass()
|
|
Attributes#
Classes#
|
Module Contents#
- class hklpy2.backends.no_op.NoOpSolver(geometry: str, **kwargs)[source]#
Bases:
hklpy2.backends.base.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 dict 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
geometry
Name of selected diffractometer geometry.
lattice
Crystal lattice parameters.
mode
Diffractometer geometry operation mode for
forward()
.List of the geometry operating modes.
sample
Crystalline sample.
- addReflection(reflection: hklpy2.blocks.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.
- 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() []
- refineLattice(reflections: list[hklpy2.blocks.reflection.Reflection]) None [source]#
No refinement.