From 463ab1b598c3ca8a120989f8a26c480a67b66268 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 9 Feb 2013 17:32:27 -0800 Subject: uncenter_cell: Free transformation if it's not needed by the caller --- src/im-sandbox.h | 1 + src/indexamajig.c | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/im-sandbox.h b/src/im-sandbox.h index 540312ed..80ffc0ad 100644 --- a/src/im-sandbox.h +++ b/src/im-sandbox.h @@ -71,6 +71,7 @@ struct index_args int integrate_found; int include_peaks; int include_reflections; + int res_cutoff; }; diff --git a/src/indexamajig.c b/src/indexamajig.c index 57d599b5..908c1b6e 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -121,6 +121,8 @@ static void show_help(const char *s) "-e, --image= Use this image from the HDF5 file.\n" " Example: /data/data0.\n" " Default: The first one found.\n" +" --res-cutoff Estimate the resolution limit of each pattern, and\n" +" don't integrate reflections further out.\n" "\n" "\nFor time-resolved stuff, you might want to use:\n\n" " --copy-hdf5-field Copy the value of field into the stream. You\n" @@ -203,6 +205,7 @@ int main(int argc, char *argv[]) int integrate_found = 0; int config_nopeaks = 0; int config_norefls = 0; + int config_rescutoff = 0; /* For ease of upgrading from old method */ char *scellr = NULL; @@ -255,6 +258,7 @@ int main(int argc, char *argv[]) {"int-radius", 1, NULL, 14}, {"no-peaks-in-stream", 1, &config_nopeaks, 1}, {"no-refls-in-stream", 1, &config_norefls, 1}, + {"res-cutoff", 1, &config_rescutoff, 1}, /* FIXME: Add '--no-peaks' and '--no-reflections' */ @@ -582,6 +586,7 @@ int main(int argc, char *argv[]) iargs.integrate_found = integrate_found; iargs.include_peaks = !config_nopeaks; iargs.include_reflections = !config_norefls; + iargs.res_cutoff = config_rescutoff; create_sandbox(&iargs, n_proc, prefix, config_basename, fh, use_this_one_instead, ofh, argc, argv); -- cgit v1.2.3