fit no dend_tau increased v_offset baseline sim to 9 from 5

This commit is contained in:
alexanderott
2020-09-12 19:27:55 +02:00
parent f1268b291c
commit 52e6fea5f8
3 changed files with 21 additions and 32 deletions

View File

@@ -184,7 +184,7 @@ class LifacNoiseModel(AbstractModel):
def find_v_offset(self, goal_baseline_frequency, base_stimulus, threshold=2, border=50000):
test_model = self.get_model_copy()
simulation_length = 5
simulation_length = 9
v_search_step_size = 100
@@ -229,8 +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! freq: {:.2f}, lower {:.1f}, upper: {:.1f}"
.format(frequency, lower_bound, upper_bound))
print("v_offset search stopped. bounds converged! freq: {:.2f}, bounds: {:.0f}"
.format(frequency, lower_bound))
warn("Search was stopped. Upper and lower bounds converged without finding a value closer than threshold!")
return middle