diff options
-rw-r--r-- | libcrystfel/src/beam-parameters.c | 2 | ||||
-rw-r--r-- | libcrystfel/src/beam-parameters.h | 2 | ||||
-rw-r--r-- | src/im-sandbox.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/beam-parameters.c b/libcrystfel/src/beam-parameters.c index 2e4f5302..2236fddb 100644 --- a/libcrystfel/src/beam-parameters.c +++ b/libcrystfel/src/beam-parameters.c @@ -90,7 +90,7 @@ struct beam_params *get_beam_parameters(const char *filename) } else if ( strcmp(bits[0], "beam/photon_energy") == 0 ) { if ( strncmp(bits[2], "/", 1) == 0 ) { b->photon_energy = 0; // 0 means special case - b->photon_energy_from = strdup(bits[2]); + b->photon_energy_from = strdup(bits[2]); } else { b->photon_energy = atof(bits[2]); } diff --git a/libcrystfel/src/beam-parameters.h b/libcrystfel/src/beam-parameters.h index 36cfaa55..e0b16895 100644 --- a/libcrystfel/src/beam-parameters.h +++ b/libcrystfel/src/beam-parameters.h @@ -48,7 +48,7 @@ struct beam_params double divergence; /* divergence (radians) */ double profile_radius; /* Reciprocal space size of a reflection */ - + char *photon_energy_from; /* hdf5 group name */ }; diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 706dfa7b..d1696969 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -239,7 +239,7 @@ static void process_image(const struct index_args *iargs, fill_in_beamParam(beam, hdfile); } image.lambda = ph_en_to_lambda(eV_to_J(beam->photon_energy)); - + if ( image.lambda < 0.0 ) { if ( beam != NULL ) { ERROR("Using nominal photon energy of %.2f eV\n", |