fit no dend_tau increased v_offset baseline sim to 9 from 5
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user