Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throughput doesn't shows! #9

Closed
paulojaraujo opened this issue Dec 23, 2020 · 1 comment · Fixed by #11
Closed

Throughput doesn't shows! #9

paulojaraujo opened this issue Dec 23, 2020 · 1 comment · Fixed by #11
Assignees

Comments

@paulojaraujo
Copy link

My team data doesn't use any sort of estimation...

output error bellow:

image


KeyError: 'Done'

Traceback (most recent call last)
File "/home/oluapojuara/seshat-master/viewer/dash.py", line 413, in display_page
return self.show_throughput_dash(team), title
File "/home/oluapojuara/seshat-master/viewer/dash.py", line 179, in show_throughput_dash
def show_throughput_dash(self, team=0):
tm = self.projects[team]
fig_throughput = tm.draw_throughput("all")
# TODO: improve this logic
if tm.has_story_points:
fig_velocity = tm.draw_velocity("Total")
fig_spoints_throughput = tm.draw_story_points()
else:
fig_velocity = {}
fig_spoints_throughput = {}

File "/home/oluapojuara/seshat-master/viewer/team_metrics.py", line 74, in draw_velocity
velocity = calculator.flow.velocity(self.cycle_data).resample("W").sum()
File "/home/oluapojuara/seshat-master/calculator/flow.py", line 38, in velocity
table = pd.pivot_table(
File "/home/oluapojuara/.local/lib/python3.8/site-packages/pandas/core/reshape/pivot.py", line 111, in pivot_table
grouped = data.groupby(keys, observed=observed)
File "/home/oluapojuara/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 6515, in groupby
return DataFrameGroupBy(
File "/home/oluapojuara/.local/lib/python3.8/site-packages/pandas/core/groupby/groupby.py", line 525, in init
self.dropna = dropna

    if grouper is None:
        from pandas.core.groupby.grouper import get_grouper

        grouper, exclusions, obj = get_grouper(
            obj,
            keys,
            axis=axis,
            level=level,
            sort=sort,

File "/home/oluapojuara/.local/lib/python3.8/site-packages/pandas/core/groupby/grouper.py", line 786, in get_grouper
raise KeyError(gpr)
KeyError: 'Done'
Traceback (most recent call last):
File "/home/oluapojuara/seshat-master/viewer/dash.py", line 413, in display_page
return self.show_throughput_dash(team), title
File "/home/oluapojuara/seshat-master/viewer/dash.py", line 179, in show_throughput_dash
fig_velocity = tm.draw_velocity("Total")
File "/home/oluapojuara/seshat-master/viewer/team_metrics.py", line 74, in draw_velocity
velocity = calculator.flow.velocity(self.cycle_data).resample("W").sum()
File "/home/oluapojuara/seshat-master/calculator/flow.py", line 38, in velocity
table = pd.pivot_table(
File "/home/oluapojuara/.local/lib/python3.8/site-packages/pandas/core/reshape/pivot.py", line 111, in pivot_table
grouped = data.groupby(keys, observed=observed)
File "/home/oluapojuara/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 6515, in groupby
return DataFrameGroupBy(
File "/home/oluapojuara/.local/lib/python3.8/site-packages/pandas/core/groupby/groupby.py", line 525, in init
grouper, exclusions, obj = get_grouper(
File "/home/oluapojuara/.local/lib/python3.8/site-packages/pandas/core/groupby/grouper.py", line 786, in get_grouper
raise KeyError(gpr)
KeyError: 'Done

@goncalovalverde goncalovalverde self-assigned this Dec 23, 2020
@goncalovalverde goncalovalverde linked a pull request Dec 23, 2020 that will close this issue
@goncalovalverde
Copy link
Owner

@paulojaraujo please pull the new version of the code. I forgot to remove an hard coded valued for the velocity hence triggering this problem. Should work now. Do a git pull in your side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants