aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-12-03 14:55:32 +0100
committerThomas White <taw@physics.org>2018-12-03 18:26:28 +0100
commitbe36a64d562127c56e66b2c19f028f25472129d5 (patch)
treed6c20f03d5743ba5e64cd76109e647f7f632928c /src/indexamajig.c
parent4859c44d35f7c71f39237b716090eb086c134795 (diff)
indexamajig: Add --wait-for-file
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index c0334d29..f9b2c94d 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -85,6 +85,7 @@ static void show_help(const char *s)
" --highres=<n> Absolute resolution cutoff in Angstroms\n"
" --profile Show timing data for performance monitoring\n"
" --temp-dir=<path> Put the temporary folder under <path>\n"
+" --wait-for-file=<n> Time to wait for each file before processing\n"
"\nPeak search options:\n\n"
" --peaks=<method> Peak search method (zaef,peakfinder8,peakfinder9,hdf5,cxi)\n"
" Default: zaef\n"
@@ -382,6 +383,7 @@ int main(int argc, char *argv[])
iargs.copyme = new_imagefile_field_list();
iargs.min_peaks = 0;
iargs.overpredict = 0;
+ iargs.wait_for_file = 0;
if ( iargs.copyme == NULL ) {
ERROR("Couldn't allocate HDF5 field list.\n");
return 1;
@@ -528,6 +530,7 @@ int main(int argc, char *argv[])
{"xgandalf-max-lattice-vector-length", 1, NULL, 356},
{"xgandalf-max-lvl", 1, NULL, 356},
{"spectrum-file", 1, NULL, 357},
+ {"wait-for-file", 1, NULL, 358},
{0, 0, NULL, 0}
};
@@ -922,6 +925,14 @@ int main(int argc, char *argv[])
spectrum_fn = strdup(optarg);
break;
+ case 358:
+ if (sscanf(optarg, "%d", &iargs.wait_for_file) != 1)
+ {
+ ERROR("Invalid value for --wait-for-file\n");
+ return 1;
+ }
+ break;
+
case 0 :
break;