normalize_source_patch_id

function of dascore.core.summary source

normalize_source_patch_id(
    value: Any ,
)-> ‘str’

Return a source patch id as a clean string (“” when missing).

Missing ids arrive as None, empty strings, pandas NaN/NaT, or numpy scalars. pandas NaN is truthy, so a plain value or "" does not normalize it — every conversion site must go through this helper to avoid the NaN-truthiness bug the catalog resolver already had to fix.