def load_archive(archive): results = [] for ta in archive['trials']: trial = Trial.from_dict(ta) results.append(trial) results.append(Strategy.from_dict(archive['strategy'])) return results
def read_data_file(self, fullpath): strategy = Strategy.from_file(fullpath) strategy.fullpath = None return [strategy]