def _set_iraf_section(section_list):
    """
    Convert python list containing section information into string using IRAF
    syntax

    """
    assert len(section_list) == 4
    [y1, y2, x1, x2] = section_list

    y1 += 1
    x1 += 1

    return "[{:d}:{:d},{:d}:{:d}]".format(x1, x2, y1, y2)