The file isn't quite right - the arguments aren't correct for some of the model components. I think you need something like this instead:
def __init__(
self,
tau_m=20.0, cm=1.0, v_rest=-65.0, v_reset=-65.0,
threshold_value=-52.0, tau_syn_E=5.0, tau_syn_I=5.0, tau_refrac=0.1,
i_offset=0.0, v=-65.0, isyn_exc=0.0, isyn_inh=0.0,
e_rev_E=0, e_rev_I= -100, tau_th= (10 ** 5)*5, theta=0.5):
# create neuron model class
neuron_model = NeuronModelLeakyIntegrateAndFire(v, v_rest, tau_m, cm, i_offset, v_reset, tau_refrac)
# create synapse type model
synapse_type = SynapseTypeExponential(
tau_syn_E, tau_syn_I, isyn_exc, isyn_inh)
# create input type model
input_type = InputTypeCurrent()
# create threshold type model
threshold_type = MyThresholdType(
threshold_value, tau_th, theta)
You also need to make sure you've edited python_models8/neuron/threshold_types/my_threshold_type.py correctly in order to add the tau_th and theta alongside the threshold_value parameter (and I think remove the my_threshold_parameter). Make sure that the values
you are setting on the python side for this match the values in the struct in the C code you have added (in this case threshold_value, tau_th and theta). I'm not sure what the default values for these parameters are - you may need to check that with Clea
or have a look at her github python code to work it out.
Don't worry if you feel like you're asking a lot of questions - we want to get this working for you.