Skip to content

Commit

Permalink
BUG: #414 remove user warning suppression (#528)
Browse files Browse the repository at this point in the history
* fix: remove user warning supressing

* fix: remove pkg_resources deprecation warnings

* CLN: fix linting
  • Loading branch information
himkwtn authored Jul 29, 2024
1 parent 15e8093 commit b3d0b1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
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
8 changes: 4 additions & 4 deletions pysindy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from pkg_resources import DistributionNotFound
from pkg_resources import get_distribution
from importlib.metadata import PackageNotFoundError
from importlib.metadata import version

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

0 comments on commit b3d0b1a

Please sign in to comment.