def _create_extractor(self, params, exlist, predicted): ''' Create the extractor. ''' from dials.model.serialize.reflection_block import ReflectionBlockExtractor assert (len(exlist) == 1) imageset = exlist[0].imageset return ReflectionBlockExtractor("shoebox.dat", params.integration.shoebox.block_size, imageset, predicted)
def _load_extractor(self, filename, params, exlist): ''' Load the shoebox extractor. ''' from dials.model.serialize.reflection_block import ReflectionBlockExtractor assert (len(exlist) == 1) imageset = exlist[0].imageset return ReflectionBlockExtractor(filename, params.integration.shoebox.block_size, imageset)