Ejemplo n.º 1
0
    env.process(monitor(env, finisher))

    # Execute!
    env.run(until=finisher)

    # Store cycle time values
    for case in released_pile.items:
        cycle_times.append(case.cycle_time())

    # Store stats for this run
    run.data = {
        wt.WORK_ANALYSIS: analysis_size,
        wt.WORK_DEV: dev_size,
        wt.WORK_REVIEW: review_size,
        wt.WORK_QA: qa_size,
        wt.WORK_MERGE: merge_size,
        'done': done_size,
        'release': release_size,
        'cycle_time': cycle_times,
        'total_value': total_values
    }

    runs.append(run)

#sys.exit(0)

# Counts in each state
for i, data in enumerate([x.run_data(wt.WORK_ANALYSIS) for x in runs]):
    _ = plt.plot(data, alpha=0.1, color='blue')
for i, data in enumerate([x.run_data(wt.WORK_DEV) for x in runs]):
    _ = plt.plot(data, alpha=0.1, color='red')