Skip to content

Commit

Permalink
Merge pull request #249 from mach3-software/hwallace/adaption_fix
Browse files Browse the repository at this point in the history
Breaking: Corrects setting in adaptiveMCMC handler which causes crashes
  • Loading branch information
KSkwarczynski authored Dec 17, 2024
2 parents 6f782a3 + 5a3a0b9 commit 4288713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion covariance/AdaptiveMCMCHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bool AdaptiveMCMCHandler::InitFromConfig(const YAML::Node& adapt_manager, const
// but we can split the matrix into independent block matrices

// We"ll set a dummy variable here
auto matrix_blocks = GetFromManager<std::vector<std::vector<int>>>(adapt_manager["AdaptionOptions"]["Settings"][matrix_name_str]["MatrixBlocks"], {{}});
auto matrix_blocks = GetFromManager<std::vector<std::vector<int>>>(adapt_manager["AdaptionOptions"]["Covariance"][matrix_name_str]["MatrixBlocks"], {{}});

SetAdaptiveBlocks(matrix_blocks, Npars);
return true;
Expand Down

0 comments on commit 4288713

Please sign in to comment.