aboutsummaryrefslogtreecommitdiff
path: root/utils/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/Utils.cpp')
-rw-r--r--utils/Utils.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/Utils.cpp b/utils/Utils.cpp
index 133248e30c..057d309b2e 100644
--- a/utils/Utils.cpp
+++ b/utils/Utils.cpp
@@ -223,10 +223,7 @@ std::tuple<std::vector<unsigned long>, bool, std::string> parse_npy_header(std::
std::string typestr;
npy::parse_header(header, typestr, fortran_order, shape);
- if(!fortran_order)
- {
- std::reverse(shape.begin(), shape.end());
- }
+ std::reverse(shape.begin(), shape.end());
return std::make_tuple(shape, fortran_order, typestr);
}