import re


def read_RAMAN_WITEC_information(file):

    """
    Read an information file, file, provided by WITEC.

    Arguments:
     file : the documentation file

    Returns:
     dic_info : dictionary with keys : Points per Line, Lines per Image, Scan Width [µm],
                                       Scan Height [µm], Scan Origin X [µm], Scan Origin Y [µm]
                                       Scan Origin Z [µm], Gamma [°], Scan Speed [s/Line],
                                       Integration Time [s]
    """

    # Standard Library dependencies

    motif = re.compile("-?\d+\.?\d+")
    with open(file) as f:
        content = f.readlines()

    dic_info = {}
    for x in content[11:19]:
        dic_info[x.split(":")[0]] = float(re.findall(motif, x)[-1])

    return dic_info