sda.analysis.scorers ==================== .. py:module:: sda.analysis.scorers .. autoapi-nested-parse:: Shared score-parsing helpers for SDA analysis scripts. Contains parsers for raw cell values that appear across multiple analyses. Domain-specific parsers (carbon bridge timing, lensing binary) remain in their respective example scripts. Functions --------- .. autoapisummary:: sda.analysis.scorers.parse_plasma_homogene Module Contents --------------- .. py:function:: parse_plasma_homogene(value) Convert a ``'Plasma homogène'`` cell to a **homogeneity** score in [0, 1]. Scoring convention (0 = non-homogeneous / lensing, 1 = fully homogeneous): ========= ===== Cell value Score ========= ===== Oui 1.0 Partiel 0.5 Non 0.0 ========= ===== All other values (empty, ``—``, unknown text) → ``np.nan``. .. note:: Analysis scripts that need a *different* mapping (e.g. mapping ``Oui`` to a carbon-bridge time score) should implement their own thin wrapper rather than modifying this function.