Skip to content

Commit 2e8d9a3

Browse files
Merge pull request #372 from sargreal/patch-1
Fix warning filter in normalise_func.py
2 parents 8413140 + a32cd07 commit 2e8d9a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

quantus/functions/normalise_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def normalise_by_negative(
108108
# TODO: Temporary solution to catch an elusive bug causing a numpy RuntimeWarning below.
109109
# Will be removed once bug is fixed.
110110
with warnings.catch_warnings():
111-
warnings.filterwarnings("error")
111+
warnings.filterwarnings("error", category=RuntimeWarning)
112112
try:
113113
return_array = np.where(
114114
np.logical_and(a_min < 0.0, a_max > 0.0),

0 commit comments

Comments
 (0)