Skip to content

Commit

Permalink
detect SP in from_params
Browse files Browse the repository at this point in the history
  • Loading branch information
cdonnay committed Jan 26, 2024
1 parent 65bf63a commit 0606b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/votekit/ballot_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _construct_preference_interval(
if "bloc_voter_prop" not in data:
data["bloc_voter_prop"] = bloc_voter_prop

if cls == AlternatingCrossover:
if cls == AlternatingCrossover or cls == SlatePreference:
generator = cls(
slate_to_candidates=slate_to_candidates,
cohesion_parameters=cohesion,
Expand Down

0 comments on commit 0606b97

Please sign in to comment.