sda.analysis.scorers#
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#
|
Convert a |
Module Contents#
- sda.analysis.scorers.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):
All other values (empty,
—, unknown text) →np.nan.Note
Analysis scripts that need a different mapping (e.g. mapping
Ouito a carbon-bridge time score) should implement their own thin wrapper rather than modifying this function.