Skip to content

Commit

Permalink
MNT #303 for py38
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Dec 18, 2023
1 parent a170756 commit 3a4d29d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions hkl/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from dataclasses import dataclass
from dataclasses import field
from typing import Dict
from typing import List

import numpy
import pyRestTable
Expand Down Expand Up @@ -234,17 +235,17 @@ class DCSample:
lattice: DCLattice
"""Crystal lattice parameters (angstroms and degrees)"""

reflections: list[DCReflection]
reflections: List[DCReflection]
"""List of orientation reflections."""

UB: list[list[float]]
UB: List[List[float]]
"""
Orientation matrix (3 x 3). U is the crystal orientation matrix relative
to the diffractometer and B is the transition matrix of a non-orthonormal
(the reciprocal of the crystal) in an orthonormal system.
"""

U: list[list[float]] = field(default_factory=list[list[float]])
U: List[List[float]] = field(default_factory=list[list[float]])
"""
Orientation matrix (3 x 3) of the crystal relative to the diffractometer.
(optional)
Expand Down Expand Up @@ -338,22 +339,22 @@ class DCConfiguration:
diffractometer to restore.
"""

canonical_axes: list[str]
canonical_axes: List[str]
"""
List of the diffractometer real-space axis names. Both the exact spelling
and order are defined by the back-end computation library. MUST match
diffractometer to restore.
"""

real_axes: list[str]
real_axes: List[str]
"""
User-defined real-space axis names. MUST match diffractometer to restore.
The length and order of this list must be the same as the
``canonical_axes``. It is used to resolve any (real-space) ``positioner``
names in this file.
"""

reciprocal_axes: list[str]
reciprocal_axes: List[str]
"""
List of names of the diffractometer reciprocal-space (pseudo) axes. Both
the exact spelling and order are defined by the back-end computation
Expand Down

0 comments on commit 3a4d29d

Please sign in to comment.