Skip to content
Snippets Groups Projects
Commit cbab6417 authored by Lynch, Vickie's avatar Lynch, Vickie
Browse files

Refs #25891 expose getMaxOrder to python

parent c7ae1448
No related branches found
No related tags found
No related merge requests found
......@@ -204,8 +204,6 @@ void IndexPeaks::exec() {
iteration++;
}
g_log.notice() << "Maximum Order: " << o_lattice.getMaxOrder() << '\n';
if (o_lattice.getMaxOrder() ==
0) // If data not modulated, recalculate fractional HKL
{
......@@ -236,6 +234,7 @@ void IndexPeaks::exec() {
}
}
} else {
g_log.notice() << "Maximum Order: " << o_lattice.getMaxOrder() << '\n';
int ModDim = 0;
int main_indexed = 0;
int sate_indexed = 0;
......
......@@ -351,6 +351,9 @@ void export_UnitCell() {
"right-handed coordinate system and using the Busing-Levy "
"convention. This will return a :class:`numpy.ndarray` with shape "
"``(3,3)``.")
.def("getMaxOrder", &UnitCell::getMaxOrder, arg("self"),
"Returns the number of modulation vectorsell. This will return an "
"int.")
.def("recalculateFromGstar", &recalculateFromGstar,
(arg("self"), arg("NewGstar")),
"Recalculate the unit cell parameters from a metric tensor. This "
......
......@@ -82,6 +82,8 @@ Improvements
- :ref:`DeltaPDF3D <algm-DeltaPDF3D>` has a new method for peak removal, KAREN (K-space Algorithmic REconstructioN)
- Maximum order of modulated vectors is now available to python: ws.sample().getOrientedLattice().getMaxOrder()
Imaging
-------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment