normalize_source_patch_key

function of dascore.core.summary source

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

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

Missing keys 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.