diff options
author | Thomas White <taw@physics.org> | 2010-05-27 17:10:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-05-27 17:10:04 +0200 |
commit | 0a721b5c0b022208b567dae7e0638b9da9c27cbd (patch) | |
tree | e56273b8177b1dabe2a05ea5ecb49315d4206b3e /src/peaks.c | |
parent | 7c45e455a6ee020174580355f746e7b03a1119df (diff) |
Handle I0 == 1.0 correctly
Diffstat (limited to 'src/peaks.c')
-rw-r--r-- | src/peaks.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/peaks.c b/src/peaks.c index a44b2913..9d5c305b 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -524,7 +524,12 @@ void output_intensities(struct image *image, UnitCell *cell, printf("cstar = %+9.7f %+9.7f %+9.7f nm^-1\n", csx/1e9, csy/1e9, csz/1e9); - printf("f0 = %7.5f (arbitrary gas detector units)\n", image->f0); + if ( image->f0_available ) { + printf("f0 = %7.5f (arbitrary gas detector units)\n", + image->f0); + } else { + printf("f0 = invalid\n"); + } for ( i=0; i<n_hits; i++ ) { |