diff options
author | Yaroslav Gevorkov <yaroslav.gevorkov@desy.de> | 2020-02-07 21:25:05 +0100 |
---|---|---|
committer | Yaroslav Gevorkov <yaroslav.gevorkov@desy.de> | 2020-02-07 21:25:05 +0100 |
commit | a0c43b49789c78bcbbfc3a6d3da63eeeafadc148 (patch) | |
tree | 57b24306c3f015c2566f667f2e90b310f8b7bbe6 /libcrystfel | |
parent | 57826f34b345ff87c0121d5edec5ef62ae7aed37 (diff) |
fix error message for photon_energy not known at indexer_prepare
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/pinkindexer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/pinkindexer.c b/libcrystfel/src/pinkindexer.c index 8941080a..9b731839 100644 --- a/libcrystfel/src/pinkindexer.c +++ b/libcrystfel/src/pinkindexer.c @@ -157,9 +157,9 @@ void *pinkIndexer_prepare(IndexingMethod *indm, UnitCell *cell, struct pinkIndexer_options *pinkIndexer_opts, struct detector *det, struct beam_params *beam) { - if ( beam->photon_energy_from != NULL && pinkIndexer_opts->customPhotonEnergy > 0) { + if ( beam->photon_energy_from != NULL && pinkIndexer_opts->customPhotonEnergy <= 0) { ERROR("For pinkIndexer, the photon_energy must be defined as a " - "constant in the geometry file or a parameter\n"); + "constant in the geometry file or as a parameter (see --pinkIndexer-override-photon-energy)\n"); return NULL; } if ( (det->panels[0].clen_from != NULL) && pinkIndexer_opts->refinement_type == |