orix 0.11.0
orix 0.11.0 is a minor release of orix, an open-source Python library for handling orientations, rotations and crystal symmetry.
This release removes the use of a third axis (z) in CrystalMap
. It also offers the possibility of creating rotations by aligning sets of vectors, e.g. an orientation from sample and crystal vectors or a misorientation from vectors in two different crystals.
See below, the changelog or the GitHub changelog for all updates from the previous release.
Added
- Creation of one or more
Quaternion
(or instances of inheriting classes) from one or more SciPyRotation
. - Creation of one
Quaternion
orRotation
by aligning sets of vectors in two reference frames, oneOrientation
by aligning sets of sample vectors and crystal vectors, and oneMisorientation
by aligning two sets of crystal vectors in two different crystals. row
andcol
properties toCrystalMap
giving the row and column coordinate of each map point given byCrystalMap.shape
.Rotation
class methodsfrom_neo_euler()
,from_axes_angles()
,from_euler()
,from_matrix()
,random()
andidentity()
and methodsto_euler()
andto_matrix()
are now available from theQuaternion
class as well.StereographicPlot.restrict_to_sector()
allows two new parameters to control the amount of padding (in degrees in stereographic projection) and whether to show the sector edges. Keyword arguments can also be passed on to Matplotlib'sPathPatch()
.- Option to pass degrees to the
Quaternion
methodsfrom_axes_angles()
,from_euler()
andto_euler()
by passingdegrees=True
. - Option to get degrees from all
angle_with()
andangle_with_outer()
methods by passingdegrees=True
. - Option to pass degrees to the
(Mis)Orientation
methodget_distance_matrix()
by passingdegrees=True
. - Option to pass degrees to the
Vector3d
methodsfrom_polar()
andto_polar()
by passingdegrees=True
. - Option to get spherical coordinates from
InverseStereographicProjection.xy2spherical()
in degrees or pass them as degrees toStereographicProjection
methodsspherical2xy()
andspherical2xy_split()
by passingdegrees=True
.
Changed
- Bumped minimal version of
diffpy.structure >= 3.0.2
. - Only ASTAR .ang files return crystal maps with
"nm"
as scan unit.
Removed
- Parameter
z
when creating aCrystalMap
and thez
anddz
attributes of the class were deprecated in 0.10.1 and are now removed. - Passing
shape
orstep_sizes
with three values tocreate_coordinate_arrays()
was depreacted in 0.10. and will now raise an error. - Parameter
depth
(andaxes
) inCrystalMapPlot.plot_map()
was depreacted in 0.10.1 and will now raise an error if passed. - The
z
anddz
datasets are not present in new orix HDF5 files. They are not read if present in older files.
Fixed
- Reading of EDAX TSL .ang files with ten columns should now work.