Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: #414 remove user warning suppression #528

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ force-exclude = '''

[tool.pytest.ini_options]
filterwarnings = [
"ignore::RuntimeWarning",
"ignore::UserWarning",]
"ignore::RuntimeWarning",]
addopts = '-m "not slow and not notebooks"'
markers = ["slow", "notebooks"]

Expand Down
7 changes: 3 additions & 4 deletions pysindy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from pkg_resources import DistributionNotFound
from pkg_resources import get_distribution
from importlib.metadata import version, PackageNotFoundError

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
__version__ = version(__name__)
except PackageNotFoundError:
pass

from . import differentiation
Expand Down
2 changes: 0 additions & 2 deletions pysindy/optimizers/sr3.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from ..utils import get_regularization
from .base import BaseOptimizer

warnings.filterwarnings("ignore", category=UserWarning)


class SR3(BaseOptimizer):
"""
Expand Down
Loading