def detector_refiner(params, experiments, reflections): print("Refining detector at hierarchy_level=" + \ str(params.refinement.parameterisation.detector.hierarchy_level)) # Here use the specialised faster refiner refiner = StillsDetectorRefinerFactory.from_parameters_data_experiments( params, reflections, experiments) refiner.run() return refiner.get_experiments()
def detector_refiner(params, experiments, reflections): print "Refining detector at hierarchy_level=" + \ str(params.refinement.parameterisation.detector.hierarchy_level) # Here use the specialised faster refiner refiner = StillsDetectorRefinerFactory.from_parameters_data_experiments( params, reflections, experiments) refiner.run() return refiner.get_experiments()
def do_work(item): refs, exps = item if len(refs) < 20: print "Cannot refine detector", exps[0].detector.hierarchy().get_name(), "due to too few reflections (", len(refs), ")" return exps # do not refine this detector element # Here use the specialised faster refiner refiner = StillsDetectorRefinerFactory.from_parameters_data_experiments( params, refs, exps) refiner.run() return refiner.get_experiments()
def do_work(item): refs, exps = item if len(refs) < 20: print "Cannot refine detector", exps[0].detector.hierarchy( ).get_name(), "due to too few reflections (", len(refs), ")" return exps # do not refine this detector element # Here use the specialised faster refiner refiner = StillsDetectorRefinerFactory.from_parameters_data_experiments( params, refs, exps) refiner.run() return refiner.get_experiments()