sort default parameters more intuitively

This commit is contained in:
a.ott 2020-01-29 11:05:12 +01:00
parent d7f70ab48d
commit e0c1ab31a3

View File

@ -3,23 +3,24 @@ from stimuli.AbstractStimulus import AbstractStimulus
from models.AbstractModel import AbstractModel from models.AbstractModel import AbstractModel
import numpy as np import numpy as np
import helperFunctions as hf import helperFunctions as hf
from numba import jit
class LifacNoiseModel(AbstractModel): class LifacNoiseModel(AbstractModel):
# all times in milliseconds # all times in milliseconds
# possible mem_res: 100 * 1000000 # possible mem_res: 100 * 1000000 exact value unknown in p-units
DEFAULT_VALUES = {"mem_tau": 20, DEFAULT_VALUES = {"mem_tau": 20,
"v_base": 0, "v_base": 0,
"v_zero": -1, "v_zero": 0,
"threshold": 1, "threshold": 1,
"step_size": 0.01,
"delta_a": 0.4,
"tau_a": 40,
"a_zero": 30,
"v_offset": 50, "v_offset": 50,
"input_scaling": 1, "input_scaling": 1,
"noise_strength": 3} "delta_a": 0.4,
# membrane time constant tau = mem_cap*mem_res "tau_a": 40,
"a_zero": 0,
"noise_strength": 3,
"step_size": 0.01}
def __init__(self, params: dict = None): def __init__(self, params: dict = None):
super().__init__(params) super().__init__(params)