From 39814cbfdadb73ad0e3ec5594200c0c7e0542e30 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Wed, 10 Jul 2024 23:09:24 +0200 Subject: [PATCH] Change the default seat radius factor to .8 --- src/parliamentarch/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parliamentarch/__init__.py b/src/parliamentarch/__init__.py index 483f40d..b9cb719 100644 --- a/src/parliamentarch/__init__.py +++ b/src/parliamentarch/__init__.py @@ -9,7 +9,7 @@ _GET_SEATS_CENTERS_PARAM_NAMES = {k: p for k, p in signature(get_seats_centers).parameters.items() if p.kind==p.KEYWORD_ONLY} _WRITE_GROUPED_SVG_PARAM_NAMES = {k: p for k, p in signature(get_grouped_svg).parameters.items() if p.kind==p.KEYWORD_ONLY} -def get_svg_from_attribution(attrib: dict[SeatData, int], *, seat_radius_factor: float = 1., **kwargs) -> str: +def get_svg_from_attribution(attrib: dict[SeatData, int], *, seat_radius_factor: float = .8, **kwargs) -> str: nseats = sum(attrib.values()) get_seats_centers_kwargs, write_grouped_svg_kwargs, kwargs = filter_kwargs(_GET_SEATS_CENTERS_PARAM_NAMES, _WRITE_GROUPED_SVG_PARAM_NAMES, **kwargs)