def read_station_data(folder = 'data/cehq_measure_data'): stations = [] for file in os.listdir(folder): if not '.txt' in file: continue path = os.path.join(folder, file) s = Station() s.parse_from_cehq(path) stations.append(s) return stations