Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
190204f3
Commit
190204f3
authored
Feb 07, 2020
by
Yaroslav Gevorkov
Browse files
add error message for too small reflection radius when using electrons
parent
a0c43b49
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcrystfel/src/pinkindexer.c
View file @
190204f3
...
...
@@ -222,6 +222,10 @@ void *pinkIndexer_prepare(IndexingMethod *indm, UnitCell *cell,
reflectionRadius_1_per_A
=
pinkIndexer_opts
->
reflectionRadius
*
1e10
;
/* m^-1 to A^-1*/
}
if
(
beamEenergy_eV
>
75000
&&
nonMonochromaticity
<
0
.
02
&&
reflectionRadius_1_per_A
<
0
.
0005
){
STATUS
(
"Trying to index electron diffraction? It might be helpful to set a higher reflection radius (see documentation for --pinkIndexer-reflection-radius)"
)
}
float
divergenceAngle_deg
=
0
.
01
;
//fake
float
tolerance
=
pinkIndexer_opts
->
tolerance
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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