zero_fill_with_mask#
- openstef_core.utils.zero_fill_with_mask(values: ndarray) tuple[ndarray, ndarray][source]#
Split an array into a zero-filled copy and a finiteness mask.
Non-finite entries (
NaNor infinities) are replaced with0.0in the returned values; the mask is1.0exactly where the original entry was finite. This is the common “feed raw values, tell the model which are real” step for masked model inputs.