add warning print
This commit is contained in:
parent
fde58b319d
commit
d15f48b174
@ -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?")
|
raise ValueError("binary_search_base_freq() - LifacNoiseModel: Goal frequency might be nan?")
|
||||||
|
|
||||||
if abs(upper_bound - lower_bound) < 0.0001:
|
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!")
|
warn("Search was stopped. Upper and lower bounds converged without finding a value closer than threshold!")
|
||||||
return middle
|
return middle
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user