Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Rey committed Apr 26, 2024
1 parent f5e268d commit 6451099
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions abcvoting/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,12 @@ def random_resampling_profile(num_voters, num_cand, p, phi):
"""
return prefsampling_wrapper(
app_samplers.resampling,
{"num_voters": num_voters, "num_candidates": num_cand, "phi": phi, "rel_size_central_vote": p},
{
"num_voters": num_voters,
"num_candidates": num_cand,
"phi": phi,
"rel_size_central_vote": p,
},
)


Expand Down Expand Up @@ -558,11 +563,7 @@ def prefsampling_euclidean_wrapper(
else:
candidates_positions = candidate_points
voters_pos, candidates_pos = prefsampling_sample_election_positions(
num_voters,
num_cand,
num_dimensions,
voters_positions,
candidates_positions
num_voters, num_cand, num_dimensions, voters_positions, candidates_positions
)
sampler_params["num_voters"] = num_voters
sampler_params["num_candidates"] = num_cand
Expand Down

0 comments on commit 6451099

Please sign in to comment.