From 9f265dd89b1fbb1db5f0d5998a85eebc5514ed5b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 22 Sep 2017 11:13:30 +0200 Subject: If no cell params or lattice type, set nocell/nolatt at top level Another thing that the indexing engines don't need to be repsonsible for. --- libcrystfel/src/mosflm.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'libcrystfel/src/mosflm.c') diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c index 110243cb..262f20b2 100644 --- a/libcrystfel/src/mosflm.c +++ b/libcrystfel/src/mosflm.c @@ -822,22 +822,6 @@ void *mosflm_prepare(IndexingMethod *indm, UnitCell *cell, struct detector *det, float *ltl) { struct mosflm_private *mp; - int need_cell = 0; - - /* Check if cell parameters are needed/provided */ - if ( *indm & INDEXING_USE_CELL_PARAMETERS ) need_cell = 1; - if ( need_cell && !cell_has_parameters(cell) ) { - ERROR("Altering your MOSFLM flags because cell parameters were" - " not provided.\n"); - *indm &= ~INDEXING_USE_CELL_PARAMETERS; - } - - /* Check if lattice type information is needed/provided */ - if ( (*indm & INDEXING_USE_LATTICE_TYPE) && (cell == NULL) ) { - ERROR("Altering your MOSFLM flags because lattice type " - "information was not provided.\n"); - *indm &= ~INDEXING_USE_LATTICE_TYPE; - } /* Flags that MOSFLM knows about */ *indm &= INDEXING_METHOD_MASK -- cgit v1.2.3