diff options
author | Thomas White <taw@physics.org> | 2021-03-18 12:00:22 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-03-19 12:04:50 +0100 |
commit | dcdce375c16c709161d57cbae551feb7b842db34 (patch) | |
tree | 428ed8f0f90fc30e277313dc15c8325602865f4b /libcrystfel/src/index.c | |
parent | fdfa088f97aa2525b9b19e9383cbc203b354b61d (diff) |
FromFile indexer: Option processing
This give FromFile its own private command-lien option processing, like
the other indexers. It removes the ability to auto-generate the
solution filename, but I don't think there's a way to do that without
breaking abstractions.
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r-- | libcrystfel/src/index.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index f9001968..0ce9e2a2 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -208,7 +208,7 @@ static void *prepare_method(IndexingMethod *m, UnitCell *cell, struct pinkIndexer_options* pinkIndexer_opts, struct felix_options *felix_opts, struct taketwo_options *taketwo_opts, - char *filename) + struct fromfile_options *fromfile_opts) { char *str; IndexingMethod in = *m; @@ -237,7 +237,7 @@ static void *prepare_method(IndexingMethod *m, UnitCell *cell, break; case INDEXING_FILE : - priv = fromfile_prepare(filename, cell); + priv = fromfile_prepare(m, fromfile_opts); break; case INDEXING_FELIX : @@ -336,7 +336,7 @@ IndexingPrivate *setup_indexing(const char *method_list, struct xgandalf_options *xgandalf_opts, struct pinkIndexer_options *pinkIndexer_opts, struct felix_options *felix_opts, - char *filename) + struct fromfile_options *fromfile_opts) { IndexingPrivate *ipriv; IndexingMethod *methods; @@ -406,7 +406,7 @@ IndexingPrivate *setup_indexing(const char *method_list, pinkIndexer_opts, felix_opts, ttopts, - filename); + fromfile_opts); if ( ipriv->engine_private[i] == NULL ) return NULL; @@ -1213,10 +1213,12 @@ char *detect_indexing_methods(UnitCell *cell) void default_method_options(TakeTwoOptions **ttopts, XGandalfOptions **xgandalf_opts, PinkIndexerOptions **pinkIndexer_opts, - FelixOptions **felix_opts) + FelixOptions **felix_opts, + FromFileOptions **fromfile_opts) { taketwo_default_options(ttopts); xgandalf_default_options(xgandalf_opts); pinkIndexer_default_options(pinkIndexer_opts); felix_default_options(felix_opts); + fromfile_default_options(fromfile_opts); } |