Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIBP-Hummer
BioEM
Commits
7d58213b
Commit
7d58213b
authored
Sep 29, 2014
by
Pilar Cossio
Browse files
Controll with electron wavelength
parent
df3ad671
Changes
1
Hide whitespace changes
Inline
Side-by-side
param.cpp
View file @
7d58213b
...
...
@@ -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
=
22
0
;
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
"
;
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment