diff options
author | Thomas White <taw@physics.org> | 2024-10-28 14:51:03 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-10-28 14:53:37 +0100 |
commit | d3ef0aa45a94ee695d64642633a8a1d6c51098ed (patch) | |
tree | 99afd8822fc385602eb31066aa58bc8752621cb9 /libcrystfel | |
parent | a989c47b836355bec9a1fb313d163a4ba07bb346 (diff) |
peakfinder8: Disable max-res cutoff by default
This changes the behaviour of peakfinder8 such that --max-res=0 disables
the high-resolution cutoff completely. It then sets this value as the
default for indexamajig and in the GUI.
When peakfinder8 was first created, 1200 pixels was a generous cutoff.
These days, we have many detectors that are much bigger and the default
value for --max-res seems to create confusion.
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/peakfinder8.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcrystfel/src/peakfinder8.c b/libcrystfel/src/peakfinder8.c index 28bee8d7..5822bba9 100644 --- a/libcrystfel/src/peakfinder8.c +++ b/libcrystfel/src/peakfinder8.c @@ -399,8 +399,9 @@ static struct peakfinder_mask *create_peakfinder_mask(const struct image *img, idx = ifs + iss*p.w; - if ( rmps->r_maps[i][idx] < max_res - && rmps->r_maps[i][idx] > min_res ) { + if ( ((max_res == 0) || (rmps->r_maps[i][idx] < max_res)) + && rmps->r_maps[i][idx] > min_res ) + { if (! ( ( img->bad != NULL ) && ( img->bad[i] != NULL ) |