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()

NoOpSolver(geometry, **kwargs)

"no_op" (any OS) no transformations.

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.

extra_axis_names

Ordered list of any extra axis names (such as x, y, z).

forward(pseudos)

Compute list of solutions(reals) from pseudos (hkl -> [angles]).

geometries()

Ordered list of the geometry names.

inverse(reals)

Compute tuple of pseudos from reals (angles -> hkl).

pseudo_axis_names

Ordered list of the pseudo axis names (such as h, k, l).

real_axis_names

Ordered list of the real axis names (such as th, tth).

refineLattice(reflections)

No refinement.

removeAllReflections()

Remove all reflections.

Python Properties

geometry

Diffractometer geometry.

lattice

Crystal lattice parameters.

mode

Diffractometer geometry operation mode for forward().

modes

List of the geometry operating modes.

sample

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 geometry: str#

Diffractometer geometry.

inverse(reals: dict)[source]#

Compute tuple of pseudos from reals (angles -> hkl).

property lattice: object#

Crystal lattice parameters. (Not used by this Solver.)

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.

removeAllReflections()[source]#

Remove all reflections.

property sample: object#

Crystalline sample.

version = '0.0.25.dev83+gf26812c'#

Version of this Solver.