Commit 7d58213b authored by Pilar Cossio's avatar Pilar Cossio

Controll with electron wavelength

parent df3ad671
......@@ -79,7 +79,7 @@ int bioem_param::readParameters(const char* fileinput,const char* fileangles)
param_device.writeCC=false;
param_device.CCwithBayes=false;
writeCTF=false;
elecwavel=0.0;
elecwavel=220;
ignoreCCoff=false;
//Assigning name of angles
......@@ -278,13 +278,19 @@ int bioem_param::readParameters(const char* fileinput,const char* fileangles)
{
writeCTF=true;
token = strtok(NULL," ");
elecwavel=atof(token);
cout << "Writing CTF parameters from PSF param that maximize the posterior \n";
if(elecwavel < 200 ){
cout << "Wrong electron wave length " << elecwavel << "\n";
cout << "Has to be in Angstrom (A)\n";
cout << "Writing CTF parameters from PSF param that maximize the posterior \n";
// cout << "tt " << token;
if(token!=NULL){
elecwavel=atof(token);
if(elecwavel < 150 ){
cout << "Wrong electron wave length " << elecwavel << "\n";
cout << "Has to be in Angstrom (A)\n";
exit(1);}
cout << "Electron wave length in (A) is: " << elecwavel << "\n";
cout << "Electron wave length in (A) is: " << elecwavel << "\n";
}else{
cout << "Using default electron wave length: 220 (A)\n";
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment