From d15f48b1742f4706173f473af83cabab53e9ccab Mon Sep 17 00:00:00 2001 From: "a.ott" Date: Tue, 8 Sep 2020 18:27:39 +0200 Subject: [PATCH] add warning print --- models/LIFACnoise.py | 1 + 1 file changed, 1 insertion(+) diff --git a/models/LIFACnoise.py b/models/LIFACnoise.py index eed94e1..28a32aa 100644 --- a/models/LIFACnoise.py +++ b/models/LIFACnoise.py @@ -227,6 +227,7 @@ def binary_search_base_freq(model: LifacNoiseModel, base_stimulus, goal_frequenc raise ValueError("binary_search_base_freq() - LifacNoiseModel: Goal frequency might be nan?") if abs(upper_bound - lower_bound) < 0.0001: + print("v_offset search stopped. bounds converged") warn("Search was stopped. Upper and lower bounds converged without finding a value closer than threshold!") return middle