diff options
-rw-r--r-- | libcrystfel/src/indexers/asdf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/indexers/asdf.c b/libcrystfel/src/indexers/asdf.c index 4473b3f2..b1c1246a 100644 --- a/libcrystfel/src/indexers/asdf.c +++ b/libcrystfel/src/indexers/asdf.c @@ -397,6 +397,8 @@ static float find_ds_fft(double *projections, int N_projections, double d_max, int i_max = (int)(d_max * (projections_sorted[n - 1] - projections_sorted[0])); + if ( i_max > N / 2 ) i_max = N / 2; + int d = 1; double maxval = 0; for ( i=1; i<=i_max; i++ ) { |