remove tau test from abstract model

This commit is contained in:
alexanderott 2020-09-13 09:54:13 +02:00
parent 41fb56d616
commit d0cfd795d1

View File

@ -96,9 +96,9 @@ class AbstractModel:
err_msg = "Unknown key in the given parameters:" + str(k)
raise ValueError(err_msg)
if "tau" in k and params[k] < 0.0000001:
warn("Time constants cannot be negative or smaller than 0.0001ms setting " + str(k) + " to 0.5ms")
params[k] = 0.00005
# if "tau" in k and params[k] < 0.0000001:
# warn("Time constants cannot be negative or smaller than 0.0001ms setting " + str(k) + " to 0.5ms")
# params[k] = 0.00005
if k == "refractory_period" and params[k] < 0:
warn("negative refractory period makes no sense. Setting " + str(k) + " to 0ms")