diff options
author | Thomas White <taw@physics.org> | 2015-02-12 10:41:15 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-02-12 11:47:06 +0100 |
commit | 830c204bbcade4e46068901cb05f10bb9db55021 (patch) | |
tree | f8b862a918f7c5b960387e9f0f31316a10b87d85 /libcrystfel/src/integration.c | |
parent | 8f20d56f91e70ea3b6a56d20be66913b15a1ebca (diff) |
prof2d: Fix number of reference profiles
Thanks again to Takanori Nakane for spotting this
Diffstat (limited to 'libcrystfel/src/integration.c')
-rw-r--r-- | libcrystfel/src/integration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index affe65b4..e18f6681 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -503,7 +503,7 @@ static int init_intcontext(struct intcontext *ic) } /* How many reference profiles? */ - ic->n_reference_profiles = ic->image->det->n_panels; + ic->n_reference_profiles = 1; ic->reference_profiles = calloc(ic->n_reference_profiles, sizeof(double *)); if ( ic->reference_profiles == NULL ) return 1; |