-
Notifications
You must be signed in to change notification settings - Fork 0
/
IF_lems.xml
28 lines (28 loc) · 1.16 KB
/
IF_lems.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" ?>
<Lems xmlns="http://www.neuroml.org/lems/0.7.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.neuroml.org/lems/0.7.3 https://raw.github.com/LEMS/LEMS/development/Schemas/LEMS/LEMS_v0.7.3.xsd">
<ComponentType name="neurongroup">
<Parameter dimension="time" name="duration"/>
<Parameter dimension="time" name="tau"/>
<Parameter dimension="none" name="n"/>
<Dynamics>
<StateVariable dimension="voltage" name="v"/>
<DerivedVariable dimension="voltage" name="v0" value="None"/>
<Regime name="refractory">
<OnCondition test="t .gt. 5. ms">
<Transition regime="integrating"/>
</OnCondition>
<OnEntry>
<StateAssignment value=" 0*mV" variable="v "/>
</OnEntry>
</Regime>
<Regime initial="true" name="integrating">
<TimeDerivative value="(v0 - v) / tau " variable="v"/>
<OnCondition test="v .gt. 10mV">
<EventOut port="spike"/>
<StateAssignment value=" 0*mV" variable="v "/>
<Transition regime="refractory"/>
</OnCondition>
</Regime>
</Dynamics>
</ComponentType>
</Lems>