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

Source code for dials.extensions.null_background_ext

from __future__ import absolute_import, division
from __future__ import print_function


[docs]class NullBackgroundExt(object): """ An extension class implementing Null background subtraction. """ name = "null" def __init__(self, params, experiments): """Initialise the algorithm. :param params: The input phil parameters :param experiments: The experiment list """ pass
[docs] def compute_background(self, reflections, image_volume=None): """ Compute the background. :param reflections: The list of reflections """ from dials.algorithms.background import set_shoebox_background_value from dials.array_family import flex set_shoebox_background_value(reflections["shoebox"], 0) return flex.bool(len(reflections), True)