This documentation page refers to a previous release of DIALS (2.2).
Click here to go to the corresponding page for the latest version of DIALS

Source code for dials.algorithms.indexing.refinement

# coding: utf-8

from __future__ import absolute_import, division, print_function


import logging

logger = logging.getLogger(__name__)


[docs]def refine(params, reflections, experiments): if params.refinement.parameterisation.scan_varying: logger.warning( "scan_varying=True not supported in indexing: setting scan_varying=False" ) params.refinement.parameterisation.scan_varying = False from dials.algorithms.refinement import RefinerFactory refiner = RefinerFactory.from_parameters_data_experiments( params, reflections, experiments ) outliers = None refined = refiner.run() return refiner, refined, outliers