Skip to content

Commit

Permalink
Fixes bug where "fitParams" outputs only one value
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPaulSharp committed Dec 10, 2024
1 parent 4d08b5d commit c78d932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/rat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ OutputResult OutputResultFromStruct6T(const RAT::struct6_T result)
output_result.fitNames.append(str);
}

output_result.fitParams = py::array_t<real_T>(result.fitParams.size(1));
output_result.fitParams = py::array_t<real_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));

Expand Down

0 comments on commit c78d932

Please sign in to comment.