make warning more telling exact

This commit is contained in:
a.ott 2020-06-04 17:13:55 +02:00
parent c5d580512e
commit 1962067cd8

View File

@ -226,7 +226,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:
warn("Search was stopped no value was found!")
warn("Search was stopped. Upper and lower bounds converged without finding a value closer than threshold!")
return middle