Page MenuHomec4science

read_data.py
No OneTemporary

File Metadata

Created
Tue, Jul 16, 22:52

read_data.py

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 17 12:36:17 2021
@author: ekinkubilay
"""
def read_data(file_name):
points = []
f = open(file_name)
lines = f.readlines()
for line in lines:
line = line.split(',')
coord = (float(line[0]), float(line[1]), float(line[2]))
points.append(coord)
f.close()
return points

Event Timeline