diff options
author | Thomas White <taw@physics.org> | 2010-09-07 11:59:57 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:57 +0100 |
commit | 2bc635d71a53aefe055ada793477a0c4ffa70ea1 (patch) | |
tree | 65dba89b1667a6cbb85ed211b197426f2402eabf | |
parent | 9e1ebb53baf2641105394068d60a43fa47a5b5e4 (diff) |
indexamajig: Implement --no-check-prefix
-rw-r--r-- | src/indexamajig.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 466369d0..088d0535 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -513,6 +513,7 @@ int main(int argc, char *argv[]) int config_sanity = 0; int config_satcorr = 0; int config_sa = 1; + int config_checkprefix = 1; float threshold = 800.0; struct detector *det; char *geometry = NULL; @@ -559,6 +560,7 @@ int main(int argc, char *argv[]) {"sat-corr", 0, &config_satcorr, 1}, {"no-sa", 0, &config_sa, 0}, {"threshold", 1, NULL, 't'}, + {"no-check-prefix", 0, &config_checkprefix, 0}, {0, 0, NULL, 0} }; @@ -641,7 +643,9 @@ int main(int argc, char *argv[]) if ( prefix == NULL ) { prefix = strdup(""); } else { - prefix = check_prefix(prefix); + if ( config_checkprefix ) { + prefix = check_prefix(prefix); + } } if ( (nthreads == 0) || (nthreads > MAX_THREADS) ) { |