Skip to content
Snippets Groups Projects
Commit 4fb8bc35 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

Frame: add check for valid k_axis

parent 0d8a5f8a
No related branches found
No related tags found
1 merge request!1874Restore axis transforms in core. Restore and improve example AxesInDifferentUnits.py.
......@@ -87,6 +87,7 @@ std::vector<int> Frame::allIndices(size_t i_flat) const
size_t Frame::projectedIndex(size_t i_flat, size_t k_axis) const
{
ASSERT(k_axis < rank());
if (rank() == 1)
return i_flat;
if (rank() == 2) {
......
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