Skip to content

Commit

Permalink
FIX: fixing fg_scale in mfs.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcarcamov committed Nov 12, 2024
1 parent 7d453e8 commit f125906
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 f125906

Please sign in to comment.