diff options
author | Kenneth R. Beyerlein <ken.beyerlein@gmail.com> | 2017-11-21 22:45:46 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-02-08 15:48:24 +0100 |
commit | af83c9f590349612fa3cff378ae165b33c0fe8f5 (patch) | |
tree | 5b6b583bfb36dbf161f45e8ea19786fce7f2c0d6 | |
parent | a6f7b412bd6e52dfae5fff84a9a33f1223c05db7 (diff) |
Make felix-domega option
-rw-r--r-- | libcrystfel/src/felix.c | 5 | ||||
-rw-r--r-- | libcrystfel/src/felix.h | 1 | ||||
-rw-r--r-- | src/indexamajig.c | 10 |
3 files changed, 15 insertions, 1 deletions
diff --git a/libcrystfel/src/felix.c b/libcrystfel/src/felix.c index e02cfb44..73a1423f 100644 --- a/libcrystfel/src/felix.c +++ b/libcrystfel/src/felix.c @@ -658,7 +658,7 @@ void *felix_prepare(IndexingMethod *indm, UnitCell *cell, gp->orispace_frustum = 1; gp->orispace_octa = 0; gp->readhkl_file = NULL; - gp->maxtime = 30.0; + gp->maxtime = 120.0; gp->tthrange_min = deg2rad(0.0); gp->tthrange_max = deg2rad(30.0); @@ -688,6 +688,9 @@ void *felix_prepare(IndexingMethod *indm, UnitCell *cell, gp->sigma_eta = opts->sigma; gp->sigma_omega = opts->sigma; } + if (opts->domega > 0.0 ) { + gp->domega = opts -> domega; + } return (IndexingPrivate *)gp; } diff --git a/libcrystfel/src/felix.h b/libcrystfel/src/felix.h index 48ffbe9c..4cb9c266 100644 --- a/libcrystfel/src/felix.h +++ b/libcrystfel/src/felix.h @@ -46,6 +46,7 @@ struct felix_options int n_voxels; double test_fraction; double sigma; + double domega; }; extern void *felix_prepare(IndexingMethod *indm, UnitCell *cell, diff --git a/src/indexamajig.c b/src/indexamajig.c index a417eaf6..29870957 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -298,6 +298,7 @@ int main(int argc, char *argv[]) iargs.felix_opts.n_voxels = 0; iargs.felix_opts.test_fraction = -1.0; iargs.felix_opts.sigma = -1.0; + iargs.felix_opts.domega = -1.0; /* Long options */ const struct option longopts[] = { @@ -389,6 +390,7 @@ int main(int argc, char *argv[]) {"felix-test-fraction", 1, NULL, 42}, {"felix-sigma", 1, NULL, 43}, {"serial-start", 1, NULL, 44}, + {"felix-domega", 1, NULL, 45}, {0, 0, NULL, 0} }; @@ -698,6 +700,14 @@ int main(int argc, char *argv[]) return 1; } break; + + case 45: + if ( sscanf(optarg, "%lf", &iargs.felix_opts.domega) != 1 ) + { + ERROR("Invalid value for --felix-domega\n"); + return 1; + } + break; case 0 : break; |