aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-06-02 14:11:39 -0700
committerThomas White <taw@physics.org>2013-06-02 14:11:39 -0700
commit8fb45911249c244a721d1bbea2eb5852f0a50b60 (patch)
tree7dac6d7b487d867cbba544888c476f88a70b2c62 /libcrystfel/src/stream.c
parent8a44164cfd5013687a0eb5cb10dc39c44db399c0 (diff)
Fix RG delta output, and write only if actually calibrated
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r--libcrystfel/src/stream.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 8c12aa3b..c4ded787 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -226,6 +226,8 @@ void write_chunk(Stream *st, struct image *i, struct hdfile *hdfile,
struct rigid_group *rg = i->det->rigid_groups[j];
+ if ( !rg->have_deltas ) continue;
+
fprintf(st->fh, "rg_delta_%s_fsx = %f\n",
rg->name, rg->d_fsx);
fprintf(st->fh, "rg_delta_%s_ssx = %f\n",
@@ -234,11 +236,11 @@ void write_chunk(Stream *st, struct image *i, struct hdfile *hdfile,
rg->name, rg->d_cnx);
fprintf(st->fh, "rg_delta_%s_fsy = %f\n",
- rg->name, rg->d_fsx);
+ rg->name, rg->d_fsy);
fprintf(st->fh, "rg_delta_%s_ssy = %f\n",
- rg->name, rg->d_ssx);
+ rg->name, rg->d_ssy);
fprintf(st->fh, "rg_delta_%s_cny = %f\n",
- rg->name, rg->d_cnx);
+ rg->name, rg->d_cny);
}