aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-08-01 18:53:45 +0200
committerThomas White <taw@bitwiz.org.uk>2015-08-01 20:29:42 +0200
commitf6f8c8046766b93f8be847fa2c71f0cbaf7c5919 (patch)
tree92ce24bb45194b8a1e8cf4834aa8e76e70eb932a /src/partialator.c
parent56f0db5a1153b447dcc9716a90aad815605cf91c (diff)
partialator: Add --no-free (for testing only)
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 614f439e..8a594116 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -81,7 +81,8 @@ static void show_help(const char *s)
" --no-polarisation Disable polarisation correction.\n"
" --max-adu=<n> Saturation value of detector.\n"
" --push-res=<n> Merge higher than apparent resolution cutoff.\n"
-" -j <n> Run <n> analyses in parallel.\n");
+" -j <n> Run <n> analyses in parallel.\n"
+" --no-free Disable cross-validation (testing only).\n");
}
@@ -357,6 +358,7 @@ int main(int argc, char *argv[])
FILE *sparams_fh;
double push_res = 0.0;
gsl_rng *rng;
+ int no_free = 0;
/* Long options */
const struct option longopts[] = {
@@ -383,6 +385,7 @@ int main(int argc, char *argv[])
{"no-polarization", 0, &polarisation, 0},
{"polarisation", 0, &polarisation, 1}, /* compat */
{"polarization", 0, &polarisation, 1}, /* compat */
+ {"no-free", 0, &no_free, 1},
{0, 0, NULL, 0}
};
@@ -632,7 +635,7 @@ int main(int argc, char *argv[])
cur);
}
- select_free_reflections(cr_refl, rng);
+ if ( !no_free ) select_free_reflections(cr_refl, rng);
as = asymmetric_indices(cr_refl, sym);
crystal_set_reflections(cr, as);