SL filter

This commit is contained in:
2026-02-09 17:57:04 +01:00
parent 6c16993cb3
commit 8e181e193a
4 changed files with 62 additions and 5 deletions

View File

@@ -92,6 +92,11 @@ class QualtricsPlotsMixin:
parts.append(f"{short_code}-{val_str}")
# Append straight-liner threshold if set
sl_threshold = getattr(self, 'sl_threshold', None)
if sl_threshold is not None:
parts.append(f"SL-gte{sl_threshold}")
if not parts:
return "All_Respondents"
@@ -182,6 +187,11 @@ class QualtricsPlotsMixin:
sample_size = self._get_filtered_sample_size()
sample_prefix = f"Sample size: {sample_size}" if sample_size is not None else ""
# Append straight-liner threshold if set
sl_threshold = getattr(self, 'sl_threshold', None)
if sl_threshold is not None:
parts.append(f"STRAIGHT-LINER EXCL: ≥{sl_threshold} question groups")
if not parts:
# No filters active - return just sample size (or empty string if no sample size)
return sample_prefix