Skip to content

Commit ec417f5

Browse files
committed
Merge branch 'master' of github.com:3dem/relion-devel into ver4.0
2 parents 4a801d6 + 7661e81 commit ec417f5

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/backprojector.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,8 @@ void BackProjector::externalReconstruct(MultidimArray<RFLOAT> &vol_out,
12091209
MultidimArray<RFLOAT> &tau2_io,
12101210
MultidimArray<RFLOAT> &sigma2_ref,
12111211
MultidimArray<RFLOAT> &data_vs_prior,
1212+
RFLOAT pixel_size,
1213+
RFLOAT particle_diameter,
12121214
bool is_whole_instead_of_half,
12131215
RFLOAT tau2_fudge,
12141216
int verb)
@@ -1257,6 +1259,8 @@ void BackProjector::externalReconstruct(MultidimArray<RFLOAT> &vol_out,
12571259
MDlist.setValue(EMDL_MLMODEL_DIMENSIONALITY, ref_dim);
12581260
MDlist.setValue(EMDL_MLMODEL_ORIGINAL_SIZE, ori_size);
12591261
MDlist.setValue(EMDL_MLMODEL_CURRENT_SIZE, 2*r_max);
1262+
MDlist.setValue(EMDL_MLMODEL_PIXEL_SIZE, pixel_size);
1263+
MDlist.setValue(EMDL_OPTIMISER_PARTICLE_DIAMETER, particle_diameter);
12601264

12611265
MDtau.setName("external_reconstruct_tau2");
12621266
for (int ii = 0; ii < XSIZE(tau2); ii++)

src/backprojector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ class BackProjector: public Projector
299299
MultidimArray<RFLOAT> &tau2_io,
300300
MultidimArray<RFLOAT> &sigma2_ref,
301301
MultidimArray<RFLOAT> &data_vs_prior,
302+
RFLOAT pixel_size=1,
303+
RFLOAT particle_diameter=0,
302304
bool is_whole_instead_of_half = false,
303305
RFLOAT tau2_fudge = 1.,
304306
int verb = 0);

src/ml_optimiser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4612,6 +4612,8 @@ void MlOptimiser::maximization()
46124612
mymodel.tau2_class[iclass],
46134613
mymodel.sigma2_class[iclass],
46144614
mymodel.data_vs_prior_class[iclass],
4615+
mymodel.pixel_size,
4616+
particle_diameter,
46154617
(do_join_random_halves || do_always_join_random_halves),
46164618
mymodel.tau2_fudge_factor,
46174619
1); // verbose

src/ml_optimiser_mpi.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,6 +2040,8 @@ void MlOptimiserMpi::maximization()
20402040
mymodel.tau2_class[ith_recons],
20412041
mymodel.sigma2_class[ith_recons],
20422042
mymodel.data_vs_prior_class[ith_recons],
2043+
mymodel.pixel_size,
2044+
particle_diameter,
20432045
(do_join_random_halves || do_always_join_random_halves),
20442046
mymodel.tau2_fudge_factor,
20452047
node->rank==1); // only first followers is verbose
@@ -2176,6 +2178,8 @@ void MlOptimiserMpi::maximization()
21762178
mymodel.tau2_class[ith_recons],
21772179
mymodel.sigma2_class[ith_recons],
21782180
mymodel.data_vs_prior_class[ith_recons],
2181+
mymodel.pixel_size,
2182+
particle_diameter,
21792183
(do_join_random_halves || do_always_join_random_halves),
21802184
mymodel.tau2_fudge_factor);
21812185
}

0 commit comments

Comments
 (0)