aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-01 11:48:20 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:31 +0100
commit17fde9fe588cd9dea698889f77f19298663ab387 (patch)
treea3eefc01badd01f9e6aa274408fcd5720aa5bde7 /src
parente823e546e3a4b78f52136c56669713dae8f3ebde (diff)
indexamajig: Make --bg-sub the default
Diffstat (limited to 'src')
-rw-r--r--src/indexamajig.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index f1c39a30..91cce62f 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -175,8 +175,6 @@ static void show_help(const char *s)
" --unpolarized Don't correct for the polarisation of the X-rays.\n"
" --no-sat-corr Don't correct values of saturated peaks using a\n"
" table included in the HDF5 file.\n"
-" --bg-sub Subtract local background estimates from\n"
-" integrated intensities.\n"
" --threshold=<n> Only accept peaks above <n> ADU. Default: 800.\n"
" --min-gradient=<n> Minimum gradient for Zaefferer peak search.\n"
" Default: 100,000.\n"
@@ -195,6 +193,8 @@ static void show_help(const char *s)
" lattice point.\n"
" --insane Don't check that the reduced cell accounts for at\n"
" least 10%% of the located peaks.\n"
+" --no-bg-sub Don't subtract local background estimates from\n"
+" integrated intensities.\n"
"\n"
"\nYou can tune the CPU affinities for enhanced performance on NUMA machines:\n"
"\n"
@@ -493,7 +493,7 @@ int main(int argc, char *argv[])
int config_checkprefix = 1;
int config_closer = 1;
int config_insane = 0;
- int config_bgsub = 0;
+ int config_bgsub = 1;
int config_basename = 0;
float threshold = 800.0;
float min_gradient = 100000.0;
@@ -555,7 +555,8 @@ int main(int argc, char *argv[])
{"cpus", 1, NULL, 6},
{"cpugroup", 1, NULL, 7},
{"cpuoffset", 1, NULL, 8},
- {"bg-sub", 1, &config_bgsub, 0},
+ {"bg-sub", 0, &config_bgsub, 1},
+ {"no-bg-sub", 0, &config_bgsub, 0},
{0, 0, NULL, 0}
};