aboutsummaryrefslogtreecommitdiff
path: root/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-04-07 18:44:01 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:23 +0100
commit20ad8ca51ac0bc5f99fc910ca461d48841d3dbb7 (patch)
treea442eb509e8392477dea200bebfaea971e8ce373 /src/stream.c
parent21f84f2f2ec89679156911b6ce039533473173e8 (diff)
Squash whitespace
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stream.c b/src/stream.c
index 4d0a35bd..7733aae9 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -249,8 +249,8 @@ void write_chunk(FILE *ofh, struct image *i, int f)
fprintf(ofh, "photon_energy_eV = %f\n",
J_to_eV(ph_lambda_to_en(i->lambda)));
-
- //FIXME:we're writing camera length from first panel only.
+
+ //FIXME:we're writing camera length from first panel only.
//this should actually write camera length for all panels.
fprintf(ofh, "camera_length = %f\n",i->det->panels[0].clen);
@@ -338,7 +338,7 @@ int read_chunk(FILE *fh, struct image *image)
}
if ( strncmp(line, "camera_length = ",16) == 0 ) {
- //FIXME: assuming here that we have loaded detector
+ //FIXME: assuming here that we have loaded detector
//geometry into image prior to calling this routine.
//otherise, we don't know how many panels there are!
if ( !( image->det == NULL ) ) {
@@ -346,10 +346,10 @@ int read_chunk(FILE *fh, struct image *image)
double clen;
clen = atof( line+16 );
for ( k=0; k< image->det->n_panels; k++ ) {
- image->det->panels[k].clen = clen;
+ image->det->panels[k].clen = clen;
}
}
- }
+ }
if ( strncmp(line, "I0 = ", 5) == 0 ) {
image->i0 = atof(line+5);