Ejemplo n.º 1
0
def run(args=None):
    from dials.command_line import stills_process
    stills_process.Processor = Hopper_Processor
    stills_process.phil_scope = phil_scope
    script = stills_process.Script()
    script.run(args)
    return script
Ejemplo n.º 2
0
class Processor(BaseProcessor):
    def index(self, experiments, reflections):
        from time import time
        import copy
        from xfel.small_cell.small_cell import small_cell_index_detail

        st = time()

        logger.info('*' * 80)
        logger.info('Indexing Strong Spots')
        logger.info('*' * 80)

        params = copy.deepcopy(self.params)

        max_clique_len, experiments, indexed = small_cell_index_detail(
            experiments, reflections, params, write_output=False)

        logger.info('')
        logger.info('Time Taken = %f seconds' % (time() - st))
        return experiments, indexed


if __name__ == '__main__':
    from dials.command_line import stills_process
    stills_process.Processor = Processor
    stills_process.phil_scope = phil_scope

    with show_mail_on_error():
        script = stills_process.Script()
        script.run()