From 64510998dee1e3ad2b599b806d747dbf882473a6 Mon Sep 17 00:00:00 2001 From: Simon-Rey Date: Fri, 26 Apr 2024 10:17:14 +0200 Subject: [PATCH] Black formatting --- abcvoting/generate.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/abcvoting/generate.py b/abcvoting/generate.py index 14fba10..588042d 100644 --- a/abcvoting/generate.py +++ b/abcvoting/generate.py @@ -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, + }, ) @@ -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