We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8413140 commit a32cd07Copy full SHA for a32cd07
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