Example #1
0
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
Example #2
0
 def read_data_file(self, fullpath):
     strategy = Strategy.from_file(fullpath)
     strategy.fullpath = None
     return [strategy]