From 97c5e9d616935c4733f4e161d555f14a55dd268a Mon Sep 17 00:00:00 2001 From: Jake <37048747+Jacob-Stevens-Haas@users.noreply.github.com> Date: Wed, 31 Jan 2024 15:05:48 +0000 Subject: [PATCH] Bug(stlsq): Re-enable UserWarning in testing and locally Fix # 414 --- pyproject.toml | 3 +-- pysindy/optimizers/sr3.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 60028b62a..1972b9ebd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,8 +77,7 @@ force-exclude = ''' [tool.pytest.ini_options] filterwarnings = [ - "ignore::RuntimeWarning", - "ignore::UserWarning",] + "ignore::RuntimeWarning",] addopts = '-m "not slow and not notebooks"' markers = ["slow", "notebooks"] diff --git a/pysindy/optimizers/sr3.py b/pysindy/optimizers/sr3.py index 765d4c1f6..10eade735 100644 --- a/pysindy/optimizers/sr3.py +++ b/pysindy/optimizers/sr3.py @@ -10,8 +10,6 @@ from ..utils import get_regularization from .base import BaseOptimizer -warnings.filterwarnings("ignore", category=UserWarning) - class SR3(BaseOptimizer): """