Skip to content

Commit

Permalink
Merge pull request #18 from miguelcarcamov/development
Browse files Browse the repository at this point in the history
FIX: fixing fg_scale in mfs.cu
  • Loading branch information
miguelcarcamov authored Nov 12, 2024
2 parents 23d0bee + f125906 commit ce8764a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mfs.cu
Original file line number Diff line number Diff line change
Expand Up @@ -956,12 +956,12 @@ void MFS::run() {

Fi* chi2 = optimizer->getObjectiveFunction()->getFiByName("Chi2");

if (NULL != chi2 && chi2->getNormalize())
this->fg_scale = 1.0f;

if (NULL != chi2)
chi2->setFgScale(this->fg_scale);

if (NULL != chi2 && chi2->getNormalize())
chi2->setFgScale(1.0f);

if (this->gridding) {
if (NULL != chi2)
chi2->setCKernel(this->ckernel);
Expand Down

0 comments on commit ce8764a

Please sign in to comment.