You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test.py", line 28, in <module>
pprint(STV(counts).as_dict())
File "/Users/andy/sandboxes/dsf/python-vote-core-20120423.0/pyvotecore/stv.py", line 30, in __init__
super(STV, self).__init__(ballots, tie_breaker=tie_breaker, required_winners=required_winners)
File "/Users/andy/sandboxes/dsf/python-vote-core-20120423.0/pyvotecore/abstract_classes.py", line 76, in __init__
super(MultipleWinnerVotingSystem, self).__init__(ballots, tie_breaker)
File "/Users/andy/sandboxes/dsf/python-vote-core-20120423.0/pyvotecore/abstract_classes.py", line 59, in __init__
super(FixedWinnerVotingSystem, self).__init__(ballots, tie_breaker)
File "/Users/andy/sandboxes/dsf/python-vote-core-20120423.0/pyvotecore/abstract_classes.py", line 36, in __init__
self.calculate_results()
File "/Users/andy/sandboxes/dsf/python-vote-core-20120423.0/pyvotecore/stv.py", line 73, in calculate_results
if ballot["ballot"][0] in round["winners"]:
IndexError: list index out of range
I'm trying to reproduce this with a simple data set and not succeeding yet. Our dataset goes through a few rounds and would get to a point like this:
I'm trying to reproduce this with a simple data set and not succeeding yet. Our dataset goes through a few rounds and would get to a point like this:
This is our current data set:
The text was updated successfully, but these errors were encountered: