Guides#
User-facing how-to guides for beamline scientists and instrument scientists. For developer and contributor documentation, see the Developer / Contributor section below.
Getting started#
Guide |
Description |
|---|---|
Define a diffractometer (custom subclass or |
|
List, select, and instantiate solvers; understand solver entry points. |
Diffractometer axes#
Guide |
Description |
|---|---|
Add crystal analyzer axes ( |
|
All accepted forms for specifying real and pseudo axis positions: positional args, keyword args, dict, and named tuple. |
|
Add extra real motors or pseudo axes beyond the solver defaults. |
|
Pass extra solver parameters (e.g. |
Computation#
Guide |
Description |
|---|---|
Add orientation reflections, compute the UB matrix, set it manually, inspect, refine, and reset it. |
|
Set axis limits and cut points; write a custom constraint subclass. |
|
Hold a real axis at a fixed value during |
|
Choose which |
|
Understand factors that affect |
|
Use the |
|
Switch between calculation engines (e.g. |
|
Move to or scan along a crystallographic zone axis
(SPEC |
|
Scan the azimuthal angle ψ at fixed (h, k, l) using the
|
Configuration and solvers#
Guide |
Description |
|---|---|
Save a full diffractometer configuration (orientation, samples, reflections) and restore it later. |
|
Create a simulated diffractometer directly from a saved config file. |
Reference and background#
Guide |
Description |
|---|---|
Cross-reference of common SPEC commands to their hklpy2 equivalents. |
|
How code written for hklpy (v1) (v1) maps to hklpy2. |
Developer / Contributor#
These guides are aimed at developers extending hklpy2 or maintaining the project — not at beamline users.
Guide |
Description |
|---|---|
Architecture and design decisions behind hklpy2. |
|
Write and register a new solver plugin using Python entry points. |
|
Step-by-step release process for maintainers. |
|
Feature checklist tracking the v2 build (historical reference). |