From c78d932acd796869b49e55254d7b8cb062fe26eb Mon Sep 17 00:00:00 2001 From: Paul Sharp <44529197+DrPaulSharp@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:32:24 +0000 Subject: [PATCH] Fixes bug where "fitParams" outputs only one value --- cpp/rat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));