fit without ref period

This commit is contained in:
a.ott
2020-09-12 14:35:17 +02:00
parent f8a8e87f04
commit f1268b291c
10 changed files with 61 additions and 23 deletions

View File

@@ -229,7 +229,8 @@ 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")
print("v_offset search stopped. bounds converged! freq: {:.2f}, lower {:.1f}, upper: {:.1f}"
.format(frequency, lower_bound, upper_bound))
warn("Search was stopped. Upper and lower bounds converged without finding a value closer than threshold!")
return middle