def METHOD_NAME(self, scan_info):
    energy_scan = self.get_data_model()
    scan_file_path = os.path.join(
        energy_scan.path_template.directory, energy_scan.path_template.get_prefix()
    )
    logging.info(
        "HWR.beamline.energy_scan %s type %s"
        % (HWR.beamline.energy_scan, type(HWR.beamline.energy_scan))
    )
    logging.info("energy_scan %s type %s" % (energy_scan, type(energy_scan)))
    scan_file_archive_path = os.path.join(
        energy_scan.path_template.get_archive_directory(),
        energy_scan.path_template.get_prefix(),
    )
    logging.info(
        "energy_scan.element_symbol %s, energy_scan.edge %s, scan_file_archive_path %s, scan_file_path %s"
        % (
            energy_scan.element_symbol,
            energy_scan.edge,
            scan_file_archive_path,
            scan_file_path,
        )
    )
    egy_result = HWR.beamline.energy_scan.do_chooch(
        energy_scan.element_symbol,
        energy_scan.edge,
        scan_file_archive_path,
        scan_file_path,
    )
    if egy_result is None:
        logging.info("energy_scan. failed. ")
        return None
    (
        pk,
        fppPeak,
        fpPeak,
        ip,
        fppInfl,
        fpInfl,
        rm,
        chooch_graph_x,
        chooch_graph_y1,
        chooch_graph_y2,
        title,
    ) = egy_result
    # scan_info = HWR.beamline.energy_scan.scanInfo
    # This does not always apply, update model so
    # that its possible to access the sample directly from
    # the EnergyScan object.
    sample = self.get_view().parent().parent().get_model()
    sample.crystals[0].energy_scan_result.peak = pk
    sample.crystals[0].energy_scan_result.inflection = ip
    sample.crystals[0].energy_scan_result.first_remote = rm
    sample.crystals[0].second_remote = None
    energy_scan.result = sample.crystals[0].energy_scan_result
    logging.getLogger("user_level_log").info(
        "Energy scan, result: peak: %.4f, inflection: %.4f"
        % (
            sample.crystals[0].energy_scan_result.peak,
            sample.crystals[0].energy_scan_result.inflection,
        )
    )
    self.get_view().setText(1, "Done")