def load_data(self) -> List[Event]: """ Reads the event data from the CSV file. """ with open(self.filename) as _file: lines = _file.readlines() if self.limit: lines = lines[:self.limit] data = [Event.read_event(line) for line in tqdm(lines, 'Loading data')] return data