Skip to content

Commit

Permalink
Fix minor problems only apparant on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
KSkwarczynski committed Sep 2, 2024
1 parent 893c975 commit 0499111
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions covariance/covarianceBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,8 @@ void covarianceBase::setParameters(const std::vector<double>& pars) {

unsigned int parsSize = pars.size();
for (unsigned int i = 0; i < parsSize; i++) {
//Make sure that you are actually passing a number to set the parameter to
if(isnan(pars[i])) {
//Make sure that you are actually passing a number to set the parameter to
if(std::isnan(pars[i])) {
MACH3LOG_ERROR("Error: trying to set parameter value to a nan for parameter {} in matrix {}. This will not go well!", GetParName(i), matrixName);
throw;
} else {
Expand All @@ -955,9 +955,8 @@ void covarianceBase::setParameters(const std::vector<double>& pars) {
}

MACH3LOG_DEBUG("Set parameters to:");
std::cout << "Set parameters to: " << std::endl;
for(int par_i = 0 ; par_i < pars.size() ; ++par_i){
MACH3LOG_DEBUG("{} : {}", par_i, _fPropVal[par_i]);
for(size_t par_i = 0 ; par_i < pars.size() ; ++par_i){
MACH3LOG_DEBUG("{} : {}", par_i, _fPropVal[par_i]);
}

// And if pca make the transfer
Expand Down

0 comments on commit 0499111

Please sign in to comment.