refactor: remove Stemgedrag cohesie section and fallback axis message

- Remove voting discipline (cohesie) section from Political Compass tab
- Remove 'empirisch stempatroon zonder duidelijke ideologische richting' fallback message from axis classifier
- Clean up unused fallback template from _INTERPRETATION_TEMPLATES
This commit is contained in:
2026-04-02 21:46:24 +02:00
parent a5e95c33d7
commit abd3281044
2 changed files with 108 additions and 91 deletions
+3 -11
View File
@@ -71,10 +71,6 @@ _INTERPRETATION_TEMPLATES = {
"oppositiepartijen (r={r:.2f}). Ideologische tegenstellingen zijn minder dominant dit jaar."
),
"pc": "De {orientation} as weerspiegelt de progressief-conservatieve tegenstelling.",
"fallback": (
"De {orientation} as weerspiegelt een empirisch stempatroon "
"zonder duidelijke ideologische richting."
),
}
# Maps motion-path keyword labels to _INTERPRETATION_TEMPLATES keys.
@@ -459,7 +455,7 @@ def _assign_label(
)
return (
fallback_label,
_INTERPRETATION_TEMPLATES["fallback"].format(orientation=orientation),
"", # No interpretation for unclassified axes
quality,
)
@@ -617,14 +613,10 @@ def classify_axes(
_x_fallback, _y_fallback = get_fallback_labels()
if x_lbl is None:
x_lbl = _x_fallback
x_int = _INTERPRETATION_TEMPLATES["fallback"].format(
orientation="horizontale"
)
x_int = "" # No interpretation for unclassified axes
if y_lbl is None:
y_lbl = _y_fallback
y_int = _INTERPRETATION_TEMPLATES["fallback"].format(
orientation="verticale"
)
y_int = "" # No interpretation for unclassified axes
x_quality[wid] = x_q
y_quality[wid] = y_q