Esempio n. 1
0
 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
Esempio n. 2
0
 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