def create(Class, data, detector_space=False, deconvolution=False): ''' Create the intensity calculator ''' from dials.algorithms.integration.parallel_integrator import GaussianRSIntensityCalculator # Return the intensity algorithm return GaussianRSIntensityCalculator(data, detector_space, deconvolution)
def create(cls, data, detector_space=False, deconvolution=False): """ Create the intensity calculator """ from dials.algorithms.integration.parallel_integrator import ( GaussianRSIntensityCalculator, ) # Return the intensity algorithm return GaussianRSIntensityCalculator(data, detector_space, deconvolution)