def dataset_loading_2D(dataset_string, scale_factor = 1):
    """
    Creates a list of observations from a 2D dataset.
    """
    observations = []
    lines = dataset_string.split("\n")
    for l in lines:
        try:
            nums = l.split()
            observations.append((float(nums[0])*scale_factor,float(nums[1])*scale_factor))
        except __HOLE__:
            pass
        except:
            print "[Error dataset_loading_2D] Impossible to parse line. Exiting..."
            exit()
    return observations
dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/validation/bidimensional/validationTools.py/dataset_loading_2D