aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-12-14 10:53:09 +0100
committerThomas White <taw@physics.org>2012-12-14 10:53:09 +0100
commite745af481e176834e804b2eec59b7170e260ce81 (patch)
tree270c0a6a8db737699fde3f5fe74d1f5877b6d7cc
parent27da7fc3b8c4ae479305d5de996bf8c729fabac3 (diff)
Whitespace
-rw-r--r--libcrystfel/src/beam-parameters.c2
-rw-r--r--libcrystfel/src/beam-parameters.h2
-rw-r--r--src/im-sandbox.c2
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",