Task: Suppress Specific NumPy Divide-by-Zero Warnings
Task: Suppress Specific NumPy Divide-by-Zero Warnings: a task in Terminal-Lego-15k (Harbor dataset). In scientific computing with NumPy, division by zero can produce RuntimeWarning: divide by zero encountered messages. Sometimes these warnings are expected and handled downstream (e.g., using…
The task
In scientific computing with NumPy, division by zero can produce `RuntimeWarning: divide by zero encountered` messages. Sometimes these warnings are expected and handled downstream (e.g., using `np.isinf` or `np.nan_to_num`), so you want to suppress them without disabling all Python warnings.
Part of PrimeIntellect/Terminal-Lego-15k.