diff --git a/cpp/rat.cpp b/cpp/rat.cpp index aa80abd..d49fd6e 100644 --- a/cpp/rat.cpp +++ b/cpp/rat.cpp @@ -1145,7 +1145,7 @@ OutputResult OutputResultFromStruct6T(const RAT::struct6_T result) output_result.fitNames.append(str); } - output_result.fitParams = py::array_t(result.fitParams.size(1)); + output_result.fitParams = py::array_t(result.fitParams.size(0)); auto buffer = output_result.fitParams.request(); std::memcpy(buffer.ptr, result.fitParams.data(), output_result.fitParams.size()*sizeof(real_T));