Skip to content

Commit 70bd5eb

Browse files
committed
Bug fix with no defocus
1 parent c567a02 commit 70bd5eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/xmipp/libraries/reconstruction/ctf_estimate_from_psd.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ void ProgCTFEstimateFromPSD::saveIntermediateResults(const FileName &fn_root, bo
405405
"save_intermediate_results::Cannot open plot file for writing\n");
406406
plotX << "# freq_dig freq_angstrom model psd enhanced logModel logPsd\n";
407407
plotY << "# freq_dig freq_angstrom model psd enhanced logModel logPsd\n";
408-
//plot_radial << "# freq_dig freq_angstrom model psd enhanced logModel logPsd\n";
408+
plot_radial << "# freq_dig freq_angstrom model psd enhanced logModel logPsd\n";
409409

410410
// Generate cut along X
411411
for (int i = STARTINGY(save()); i <= FINISHINGY(save()) / 2; i++)
@@ -2357,6 +2357,8 @@ double ROUT_Adjust_CTF(ProgCTFEstimateFromPSD &prm, CTFDescription &output_ctfmo
23572357
steps(10) = steps(11) = 0;
23582358
if (std::floor(prm.initial_ctfmodel.VPP_radius) == 0)
23592359
steps(36) = 0; //VPP phase shift
2360+
if (prm.noDefocusEstimate)
2361+
steps(0)=steps(1)=0;
23602362

23612363
powellOptimizer(*prm.adjust_params, 0 + 1, ALL_CTF_PARAMETERS, CTF_fitness,
23622364
global_prm, 0.01, fitness, iter, steps, prm.show_optimization);

0 commit comments

Comments
 (0)