diff options
author | Yaroslav Gevorkov <yaroslav.gevorkov@desy.de> | 2020-02-07 21:26:05 +0100 |
---|---|---|
committer | Yaroslav Gevorkov <yaroslav.gevorkov@desy.de> | 2020-02-07 21:26:05 +0100 |
commit | 190204f3806cd343097afad62a29523bd109cc7f (patch) | |
tree | 38dd8a55637a0241008516233f70ef3dca7b44c8 /libcrystfel/src/pinkindexer.c | |
parent | a0c43b49789c78bcbbfc3a6d3da63eeeafadc148 (diff) |
add error message for too small reflection radius when using electrons
Diffstat (limited to 'libcrystfel/src/pinkindexer.c')
-rw-r--r-- | libcrystfel/src/pinkindexer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcrystfel/src/pinkindexer.c b/libcrystfel/src/pinkindexer.c index 9b731839..e3ecf5a9 100644 --- a/libcrystfel/src/pinkindexer.c +++ b/libcrystfel/src/pinkindexer.c @@ -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; |