def get_torsscan_info(s):
    """
    Returns electronic prog/method/basis as a string and energy as a float in hartree units.
    Sample torsscan output
Optimized at : g09/b3lyp/sto-3g
Prog  : gaussian
Method: b3lyp
Basis:  sto-3g
Energy: -114.179051157 A.U.
Rotational Constants:120.49000, 23.49807, 22.51838 GHz
    """
    lines = s.splitlines()
    optlevel = ''
    prog = ''
    method = ''
    basis = ''
    energy = ''
    for line in lines:
        line = line.strip()
        if 'Optimized at' in line:
            optlevel = line.split()[-1]
        elif line.startswith('Prog'):
            s = line.split()[-1]
        elif line.startswith('Method'):
            method = line.split()[-1]
        elif line.startswith('Basis'):
            basis = line.split()[-1]
        elif line.startswith('Energy'):
            energy = float(line.replace('A.U.', '').split()[-1])
    return optlevel,  '{}/{}/{}'.format('torsscan', method, basis), energy