def get_EMA_data(cur_dir, filename):
    if (filename is None):
        return []
    fp = open((cur_dir + filename))
    file_content = fp.read()
    fp.close()
    lines = file_content.splitlines()
    data = []
    for line in lines:
        if (len(line) > 1):
            (ts, offset, sample) = line.split(',', 2)
            start_time = (int(float(ts)) / 1000.0)
            start_time = datetime.fromtimestamp(start_time)
            offset = int(offset)
            sample = sample[1:(- 1)]
            data.append([start_time, offset, sample])
    return data
def get_EMA_data(cur_dir, filename):
    if (filename is None):
        return []
    fp = open((cur_dir + filename))
    file_content = fp.read()
    fp.close()
    lines = file_content.splitlines()
    data = []
    for line in lines:
        if (len(line) > 1):
            (ts, offset, sample) = line.split(',', 2)
            start_time = (int(float(ts)) / 1000.0)
            start_time = datetime.fromtimestamp(start_time)
            offset = int(offset)
            sample = sample[1:(- 1)]
            data.append([start_time, offset, sample])
    return data