def task(self, index): """ Get a task. """ frames = self.manager.job(index) experiments = self.experiments reflections = self.manager.split(index) if len(reflections) == 0: logger.warning("*** WARNING: no reflections in job %d ***", index) task = NullTask(index=index, reflections=reflections) else: task = ReferenceCalculatorJob( index=index, job=frames, experiments=experiments, reflections=reflections, params=self.params, ) return task
def task(self, index): """ Get a task. """ frames = self.manager.job(index) experiments = self.experiments reference = self.reference reflections = self.manager.split(index) if len(reflections) == 0: logger.warning("No reflections in job %d ***", index) task = NullTask(index=index, reflections=reflections) else: task = IntegrationJob( index=index, job=frames, experiments=experiments, reflections=reflections, reference=reference, params=self.params, ) return task