Esempio n. 1
0
 def from_id(cls, id):
     days = cache.get_index_files()[id]
     days = [Day.from_numpy_file(day, path) for day, path in days.items()]
     return Veugel(id, days)
Esempio n. 2
0
def analyse(veugel_ids, plotter=default_plotter, aggregator=default_aggregator, plot_threaded=False):
    get_index_files()
    pool = multiprocessing.Pool(multiprocessing.cpu_count())
    aggregated = pool.imap(aggregate, zip(repeat(aggregator), veugel_ids))
    plotted = pool.imap(plot, zip(repeat(plotter), aggregated if plot_threaded else [list(aggregated)]))
    return list(plotted)