We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1caa0d6 commit 2158c92Copy full SHA for 2158c92
1 file changed
trivoting/election/preflib.py
@@ -75,7 +75,7 @@ def cat_instance_to_trichotomous_profile(
75
f"{cat_instance.num_categories} categories."
76
)
77
78
- alt_map = {j: Alternative(j) for j in cat_instance.alternatives_name}
+ alt_map = {j: Alternative(str(j)) for j in cat_instance.alternatives_name}
79
profile = TrichotomousMultiProfile(alternatives=alt_map.values())
80
81
for p, m in cat_instance.multiplicity.items():
0 commit comments