Skip to content

Commit

Permalink
TEST: getting back to re-calculating objective function to get model …
Browse files Browse the repository at this point in the history
…visibilities
  • Loading branch information
miguelcarcamov committed Nov 12, 2024
1 parent 9992b09 commit 0857da4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mfs.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1104,16 +1104,16 @@ void MFS::writeResiduals() {
"Measurement Set File\n");
// In the de-gridding procedure weights are also restored to the original
for (int d = 0; d < nMeasurementSets; d++) {
degridding(datasets[d].fields, datasets[d].data, deltau, deltav, num_gpus,
firstgpu, variables.blockSizeV, M, N, this->ckernel);
/*getOriginalVisibilitiesBack(datasets[d].fields, datasets[d].data,
num_gpus, firstgpu, variables.blockSizeV);*/
/*degridding(datasets[d].fields, datasets[d].data, deltau, deltav,
num_gpus, firstgpu, variables.blockSizeV, M, N, this->ckernel);*/
getOriginalVisibilitiesBack(datasets[d].fields, datasets[d].data,
num_gpus, firstgpu, variables.blockSizeV);
}
/*Fi* chi2 = optimizer->getObjectiveFunction()->getFiByName("Chi2");
Fi* chi2 = optimizer->getObjectiveFunction()->getFiByName("Chi2");
float res = chi2->calcFi(image->getImage());
printf(
"Non-gridded chi2 after de-gridding using bilinear interpolation %f\n",
res);*/
res);
}

for (int d = 0; d < nMeasurementSets; d++)
Expand Down

0 comments on commit 0857da4

Please sign in to comment.