Skip to content

plot_pie_sum appends the builtin slice type instead of the computed slice size #23

Description

@ivankrylov

src/graphing/plotting.py:110-113:
for idx, datapoints in enumerate(datapoint_groups):
pslice = sum(datapoints)
pie_slices_sizes.append(slice) # <-- appends builtin slice, not pslice
labels[idx] = labels[idx] + " : " + str(pslice)
pslice is computed and used in the label, but the list gets the builtin slice type
object. So plot.pie() receives a list of type objects rather than numbers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions