aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/pinkindexer.c4
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 ==