Task: Suppress NumPy Runtime Warnings for NaN Operations
Task: Suppress NumPy Runtime Warnings for NaN Operations: a task in Terminal-Lego-15k (Harbor dataset). When working with NumPy arrays containing NaN values, certain functions like np.nanmedian() emit RuntimeWarnings (e.g., "All-NaN slice encountered") even when np.seterr(all="ignore") is set…
The task
When working with NumPy arrays containing NaN values, certain functions like `np.nanmedian()` emit RuntimeWarnings (e.g., "All-NaN slice encountered") even when `np.seterr(all="ignore")` is set. This is because `np.seterr()` only controls floating-point errors, not Python's warning system.
Part of PrimeIntellect/Terminal-Lego-15k.