We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8413140 + a32cd07 commit 2e8d9a3Copy full SHA for 2e8d9a3
1 file changed
quantus/functions/normalise_func.py
@@ -108,7 +108,7 @@ def normalise_by_negative(
108
# TODO: Temporary solution to catch an elusive bug causing a numpy RuntimeWarning below.
109
# Will be removed once bug is fixed.
110
with warnings.catch_warnings():
111
- warnings.filterwarnings("error")
+ warnings.filterwarnings("error", category=RuntimeWarning)
112
try:
113
return_array = np.where(
114
np.logical_and(a_min < 0.0, a_max > 0.0),
0 commit comments