Skip to content

Commit

Permalink
Filtering out important warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 26, 2023
1 parent cca9dbb commit 90cf94d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 141 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = ["numpy"]
dependencies = ["numpy>=1.24.0"]

[project.optional-dependencies]
test = ["pytest"]
Expand Down
140 changes: 0 additions & 140 deletions setup.py

This file was deleted.

4 changes: 4 additions & 0 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import pydefm as m
import numpy as np

import warnings

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

y = np.array([0, 10, 3])
x = np.array([1, 2.0, 3.4])
id = np.array([11, 2, 3])
Expand Down

0 comments on commit 90cf94d

Please sign in to comment.