def handle(self, args): results = Results.load(args.results[0]) if args.savefig: results.plot_workload(savefig=args.savefig) return "" plt = results.plot_workload() plt.show()
def setUp(self): self.handler = TimeSeriesAggregator() with open(RESULTS, 'r') as f: self.results = Results.load(f)
def results(self): """ Auto-configure the results object before being accessed. """ return Results(simulation=self.name)