Skip to content

Visualisation problem with Add1 completion #40

@Kikuchad

Description

@Kikuchad

I noticed some issues in the summary visualisation when using the Add1 completion method for equal shares.

To reproduce:
I used the Netherlands Amsterdam 524 data from pabulib.

Code was

instance, profile = election.parse_pabulib("netherlands_amsterdam_524_.pb")
outcome = method_of_equal_shares(instance, profile, sat_class=Cost_Sat, analytics=True,voter_budget_increment=1)
visualiser = MESVisualiser(profile, instance, outcome)
visualiser.render("./outcome_viz/", name="PBnethAdd1")

If you look at the summary and for each projet you look at the funding that was spent on previous rounds you can see there is some errors with the computation when using the Add1 completion method:

Image

I ran without the completion method and the results are fine
(code:

outcome = method_of_equal_shares(instance, profile, sat_class=Cost_Sat, analytics=True)
visualiser = MESVisualiser(profile, instance, outcome)
visualiser.render("./outcome_viz/", name="PBneth")

Image

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