root/trunk/schemas/cellclass.rng

Revision 19, 30.7 kB (checked in by debeissat, 1 year ago)

adding units.rng in order to be able to add units to values of cellclass parameters in FacetsML

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?xml-stylesheet type="text/xsl" href="../../transformations/RNGtoHTMLform_standalone.xsl"?>
3 <rng:grammar ns="http://neuralensemble.org/FacetsML/cellclass"
4     xmlns:rng="http://relaxng.org/ns/structure/1.0"
5     xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
6     datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
7    
8     <rng:include ns="http://neuralensemble.org/FacetsML/units" href="units.rng"/>
9    
10     <rng:start combine="choice">
11         <rng:ref name="cellclass"/>
12     </rng:start>
13
14     <rng:define name="cellclass">
15         <a:documentation>
16             <style>
17                 table {
18                     border: 1px outset;
19                 }
20                 td {
21                     border: 1px inset;
22                 }
23             </style>
24         </a:documentation>
25             <rng:choice>
26                 <rng:ref name="IF_curr_alpha"/>
27                 <rng:ref name="IF_curr_exp"/>
28                 <rng:ref name="IF_cond_alpha"/>
29                 <rng:ref name="IF_cond_exp"/>
30                 <rng:ref name="IF_cond_exp_sfa_rr"/>
31                 <rng:ref name="AdaptiveExponentialIF_alpha"/>
32                 <rng:ref name="SpikeSourcePoisson"/>
33                 <rng:ref name="SpikeSourceArray"/>
34                 <rng:ref name="NonStandardCellType"/>
35             </rng:choice>
36     </rng:define>
37    
38     <rng:define name="IF_curr_alpha">
39         <rng:element name="IF_curr_alpha">
40             <a:documentation>
41                 default_parameters = {<table><tr><td>
42                         'v_rest'</td><td> -65.0</td><td>Resting membrane potential in mV.</td></tr><tr><td>
43                     'cm'         </td><td>   1.0,  </td><td>Capacity of the membrane in nF </td></tr><tr><td>
44                     'tau_m'      </td><td>  20.0,  </td><td>Membrane time constant in ms. </td></tr><tr><td>
45                     'tau_refrac' </td><td>   0.0,  </td><td>Duration of refractory period in ms. </td></tr><tr><td>
46                     'tau_syn'    </td><td>   5.0,  </td><td>Rise time of the synaptic alpha function in ms.</td></tr><tr><td>
47                     'i_offset'   </td><td>   0.0,  </td><td>Offset current in nA </td></tr><tr><td>
48                     'v_reset'    </td><td> -65.0,  </td><td>Reset potential after a spike in mV. </td></tr><tr><td>
49                     'v_thresh'   </td><td> -50.0,  </td><td>Spike threshold in mV. </td></tr><tr><td>
50                     'v_init'     </td><td> -65.0,  </td><td>Membrane potential in mV at t = 0 </td></tr>
51                 </table>
52                 }<br/>
53             </a:documentation>
54             <rng:optional>
55                 <rng:attribute name="v_rest">
56                     <rng:ref name="float_time_unit"/>
57                 </rng:attribute>
58             </rng:optional>
59             <rng:optional>
60                 <rng:attribute name="cm">
61                     <rng:ref name="float_capacitance_unit"/>
62                 </rng:attribute>
63             </rng:optional>
64             <rng:optional>
65                 <rng:attribute name="tau_m">
66                     <rng:ref name="float_time_unit"/>
67                 </rng:attribute>
68             </rng:optional>
69             <rng:optional>
70                 <rng:attribute name="tau_refrac">
71                     <rng:ref name="float_time_unit"/>
72                 </rng:attribute>
73             </rng:optional>
74             <rng:optional>
75                 <rng:attribute name="tau_syn">
76                     <rng:ref name="float_time_unit"/>
77                 </rng:attribute>
78             </rng:optional>
79             <rng:optional>
80                 <rng:attribute name="i_offset">
81                     <rng:ref name="float_current_unit"/>
82                 </rng:attribute>
83             </rng:optional>
84             <rng:optional>
85                 <rng:attribute name="v_reset">
86                     <rng:ref name="float_voltage_unit"/>
87                 </rng:attribute>
88             </rng:optional>
89             <rng:optional>
90                 <rng:attribute name="v_thresh">
91                     <rng:ref name="float_voltage_unit"/>
92                 </rng:attribute>
93             </rng:optional>
94             <rng:optional>
95                 <rng:attribute name="v_init">
96                     <rng:ref name="float_voltage_unit"/>
97                 </rng:attribute>
98             </rng:optional>
99         </rng:element>
100     </rng:define>
101    
102     <rng:define name="IF_curr_exp">
103         <rng:element name="IF_curr_exp">
104             <a:documentation>
105                 default_parameters = {<table><tr><td>
106                     'v_rest'    </td><td>-65.0,  </td><td>Resting membrane potential in mV.</td></tr><tr><td>
107                     'cm'        </td><td>1.0,    </td><td>Capacity of the membrane in nF</td></tr><tr><td>
108                     'tau_m'     </td><td>20.0,   </td><td>Membrane time constant in ms.</td></tr><tr><td>
109                     'tau_refrac'</td><td>0.0,    </td><td>Duration of refractory period in ms. </td></tr><tr><td>
110                     'tau_syn_E' </td><td>5.0,    </td><td>Decay time of excitatory synaptic current in ms.</td></tr><tr><td>
111                     'tau_syn_I' </td><td>5.0,    </td><td>Decay time of inhibitory synaptic current in ms.</td></tr><tr><td>
112                     'i_offset'  </td><td>0.0,    </td><td>Offset current in nA</td></tr><tr><td>
113                     'v_reset'   </td><td>-65.0,  </td><td>Reset potential after a spike in mV.</td></tr><tr><td>
114                     'v_thresh'  </td><td>-50.0,  </td><td>Spike threshold in mV.</td></tr><tr><td>
115                     'v_init'    </td><td>-65.0,  </td><td>Membrane potential in mV at t = 0</td></tr></table>
116                 }<br/>
117             </a:documentation>
118             <rng:optional>
119                 <rng:attribute name="v_rest">
120                     <rng:ref name="float_voltage_unit"/>
121                 </rng:attribute>
122             </rng:optional>
123             <rng:optional>
124                 <rng:attribute name="cm">
125                     <rng:ref name="float_capacitance_unit"/>
126                 </rng:attribute>
127             </rng:optional>
128             <rng:optional>
129                 <rng:attribute name="tau_m">
130                     <rng:ref name="float_time_unit"/>
131                 </rng:attribute>
132             </rng:optional>
133             <rng:optional>
134                 <rng:attribute name="tau_refrac">
135                     <rng:ref name="float_time_unit"/>
136                 </rng:attribute>
137             </rng:optional>
138             <rng:optional>
139                 <rng:attribute name="tau_syn_E">
140                     <rng:ref name="float_time_unit"/>
141                 </rng:attribute>
142             </rng:optional>
143             <rng:optional>
144                 <rng:attribute name="tau_syn_I">
145                     <rng:ref name="float_time_unit"/>
146                 </rng:attribute>
147             </rng:optional>
148             <rng:optional>
149                 <rng:attribute name="i_offset">
150                     <rng:ref name="float_current_unit"/>
151                 </rng:attribute>
152             </rng:optional>
153             <rng:optional>
154                 <rng:attribute name="v_reset">
155                     <rng:ref name="float_voltage_unit"/>
156                 </rng:attribute>
157             </rng:optional>
158             <rng:optional>
159                 <rng:attribute name="v_thresh">
160                     <rng:ref name="float_voltage_unit"/>
161                 </rng:attribute>
162             </rng:optional>
163             <rng:optional>
164                 <rng:attribute name="v_init">
165                     <rng:ref name="float_voltage_unit"/>
166                 </rng:attribute>
167             </rng:optional>
168         </rng:element>
169     </rng:define>
170    
171     <rng:define name="IF_cond_alpha">
172         <rng:element name="IF_cond_alpha">
173             <a:documentation>
174                 default_parameters = {<table><tr><td>
175                     'v_rest'    </td><td>-65.0,  </td><td>Resting membrane potential in mV.</td></tr><tr><td>
176                     'cm'        </td><td>1.0,    </td><td>Capacity of the membrane in nF</td></tr><tr><td>
177                     'tau_m'     </td><td>20.0,   </td><td>Membrane time constant in ms.</td></tr><tr><td>
178                     'tau_refrac'</td><td>0.0,    </td><td>Duration of refractory period in ms.</td></tr><tr><td>
179                     'tau_syn_E' </td><td>0.3,    </td><td>Rise time of the excitatory synaptic alpha function in ms.</td></tr><tr><td>
180                     'tau_syn_I' </td><td>0.5,    </td><td>Rise time of the inhibitory synaptic alpha function in ms.</td></tr><tr><td>
181                     'e_rev_E'   </td><td>0.0,    </td><td>Reversal potential for excitatory input in mV</td></tr><tr><td>
182                     'e_rev_I'   </td><td>-70.0,  </td><td>Reversal potential for inhibitory input in mV</td></tr><tr><td>
183                     'v_thresh'  </td><td>-50.0,  </td><td>Spike threshold in mV.</td></tr><tr><td>
184                     'v_reset'   </td><td>-65.0,  </td><td>Reset potential after a spike in mV.</td></tr><tr><td>
185                     'i_offset'  </td><td>0.0,    </td><td>Offset current in nA</td></tr><tr><td>
186                     'v_init'    </td><td>-65.0,  </td><td>Membrane potential in mV at t = 0</td></tr></table>
187                 }<br/>
188             </a:documentation>
189             <rng:optional>
190                 <rng:attribute name="v_rest">
191                     <rng:ref name="float_voltage_unit"/>
192                 </rng:attribute>
193             </rng:optional>
194             <rng:optional>
195                 <rng:attribute name="cm">
196                     <rng:ref name="float_capacitance_unit"/>
197                 </rng:attribute>
198             </rng:optional>
199             <rng:optional>
200                 <rng:attribute name="tau_m">
201                     <rng:ref name="float_time_unit"/>
202                 </rng:attribute>
203             </rng:optional>
204             <rng:optional>
205                 <rng:attribute name="tau_refrac">
206                     <rng:ref name="float_time_unit"/>
207                 </rng:attribute>
208             </rng:optional>
209             <rng:optional>
210                 <rng:attribute name="tau_syn_E">
211                     <rng:ref name="float_time_unit"/>
212                 </rng:attribute>
213             </rng:optional>
214             <rng:optional>
215                 <rng:attribute name="tau_syn_I">
216                     <rng:ref name="float_time_unit"/>
217                 </rng:attribute>
218             </rng:optional>
219             <rng:optional>
220                 <rng:attribute name="e_rev_E">
221                     <rng:ref name="float_voltage_unit"/>
222                 </rng:attribute>
223             </rng:optional>
224             <rng:optional>
225                 <rng:attribute name="e_rev_I">
226                     <rng:ref name="float_voltage_unit"/>
227                 </rng:attribute>
228             </rng:optional>
229             <rng:optional>
230                 <rng:attribute name="v_thresh">
231                     <rng:ref name="float_voltage_unit"/>
232                 </rng:attribute>
233             </rng:optional>
234             <rng:optional>
235                 <rng:attribute name="v_reset">
236                     <rng:ref name="float_voltage_unit"/>
237                 </rng:attribute>
238             </rng:optional>
239             <rng:optional>
240                 <rng:attribute name="i_offset">
241                     <rng:ref name="float_current_unit"/>
242                 </rng:attribute>
243             </rng:optional>
244             <rng:optional>
245                 <rng:attribute name="v_init">
246                     <rng:ref name="float_voltage_unit"/>
247                 </rng:attribute>
248             </rng:optional>
249         </rng:element>
250     </rng:define>
251    
252     <rng:define name="IF_cond_exp">
253         <rng:element name="IF_cond_exp">
254             <a:documentation>
255                 default_parameters = {<table><tr><td>
256                     'v_rest'    </td><td>-65.0,  </td><td>Resting membrane potential in mV.</td></tr><tr><td>
257                     'cm'        </td><td>1.0,    </td><td>Capacity of the membrane in nF</td></tr><tr><td>
258                     'tau_m'     </td><td>20.0,   </td><td>Membrane time constant in ms.</td></tr><tr><td>
259                     'tau_refrac'</td><td>0.0,    </td><td>Duration of refractory period in ms.</td></tr><tr><td>
260                     'tau_syn_E' </td><td>5.0,    </td><td>Decay time of the excitatory synaptic conductance in ms.</td></tr><tr><td>
261                     'tau_syn_I' </td><td>5.0,    </td><td>Decay time of the inhibitory synaptic conductance in ms.</td></tr><tr><td>
262                     'e_rev_E'   </td><td>0.0,    </td><td>Reversal potential for excitatory input in mV</td></tr><tr><td>
263                     'e_rev_I'   </td><td>-70.0,  </td><td>Reversal potential for inhibitory input in mV</td></tr><tr><td>
264                     'v_thresh'  </td><td>-50.0,  </td><td>Spike threshold in mV.</td></tr><tr><td>
265                     'v_reset'   </td><td>-65.0,  </td><td>Reset potential after a spike in mV.</td></tr><tr><td>
266                     'i_offset'  </td><td>0.0,    </td><td>Offset current in nA</td></tr><tr><td>
267                     'v_init'    </td><td>-65.0,  </td><td>Membrane potential in mV at t = 0</td></tr></table>
268                 }<br/>
269             </a:documentation>
270             <rng:optional>
271                 <rng:attribute name="v_rest">
272                     <rng:ref name="float_voltage_unit"/>
273                 </rng:attribute>
274             </rng:optional>
275             <rng:optional>
276                 <rng:attribute name="cm">
277                     <rng:ref name="float_capacitance_unit"/>
278                 </rng:attribute>
279             </rng:optional>
280             <rng:optional>
281                 <rng:attribute name="tau_m">
282                     <rng:ref name="float_time_unit"/>
283                 </rng:attribute>
284             </rng:optional>
285             <rng:optional>
286                 <rng:attribute name="tau_refrac">
287                     <rng:ref name="float_time_unit"/>
288                 </rng:attribute>
289             </rng:optional>
290             <rng:optional>
291                 <rng:attribute name="tau_syn_E">
292                     <rng:ref name="float_time_unit"/>
293                 </rng:attribute>
294             </rng:optional>
295             <rng:optional>
296                 <rng:attribute name="tau_syn_I">
297                     <rng:ref name="float_time_unit"/>
298                 </rng:attribute>
299             </rng:optional>
300             <rng:optional>
301                 <rng:attribute name="e_rev_E">
302                     <rng:ref name="float_voltage_unit"/>
303                 </rng:attribute>
304             </rng:optional>
305             <rng:optional>
306                 <rng:attribute name="e_rev_I">
307                     <rng:ref name="float_voltage_unit"/>
308                 </rng:attribute>
309             </rng:optional>
310             <rng:optional>
311                 <rng:attribute name="v_thresh">
312                     <rng:ref name="float_voltage_unit"/>
313                 </rng:attribute>
314             </rng:optional>
315             <rng:optional>
316                 <rng:attribute name="v_reset">
317                     <rng:ref name="float_voltage_unit"/>
318                 </rng:attribute>
319             </rng:optional>
320             <rng:optional>
321                 <rng:attribute name="i_offset">
322                     <rng:ref name="float_current_unit"/>
323                 </rng:attribute>
324             </rng:optional>
325             <rng:optional>
326                 <rng:attribute name="v_init">
327                     <rng:ref name="float_voltage_unit"/>
328                 </rng:attribute>
329             </rng:optional>
330         </rng:element>
331     </rng:define>
332
333     <rng:define name="IF_cond_exp_sfa_rr">
334         <rng:element name="IF_cond_exp_sfa_rr">
335             <a:documentation>
336                 default_parameters = {<table><tr><td>
337                     'v_rest'    </td><td>-65.0,  </td><td>Resting membrane potential in mV.</td></tr><tr><td>
338                     'cm'        </td><td>1.0,    </td><td>Capacity of the membrane in nF</td></tr><tr><td>
339                     'tau_m'     </td><td>20.0,   </td><td>Membrane time constant in ms.</td></tr><tr><td>
340                     'tau_refrac'</td><td>0.0,    </td><td>Duration of refractory period in ms.</td></tr><tr><td>
341                     'tau_syn_E' </td><td>5.0,    </td><td>Decay time of the excitatory synaptic conductance in ms.</td></tr><tr><td>
342                     'tau_syn_I' </td><td>5.0,    </td><td>Decay time of the inhibitory synaptic conductance in ms.</td></tr><tr><td>
343                     'e_rev_E'   </td><td>0.0,    </td><td>Reversal potential for excitatory input in mV</td></tr><tr><td>
344                     'e_rev_I'   </td><td>-70.0,  </td><td>Reversal potential for inhibitory input in mV</td></tr><tr><td>
345                     'v_thresh'  </td><td>-50.0,  </td><td>Spike threshold in mV.</td></tr><tr><td>
346                     'v_reset'   </td><td>-65.0,  </td><td>Reset potential after a spike in mV.</td></tr><tr><td>
347                     'i_offset'  </td><td>0.0,    </td><td>Offset current in nA</td></tr><tr><td>
348                     'v_init'    </td><td>-65.0,  </td><td>Membrane potential in mV at t = 0</td></tr><tr><td>
349                     'tau_sfa'   </td><td>100.0,  </td><td>Time constant of spike-frequency adaptation in ms</td></tr><tr><td>
350                     'e_rev_sfa' </td><td>-75.0,  </td><td>spike-frequency adaptation conductance reversal potential in mV</td></tr><tr><td>
351                     'q_sfa'     </td><td>15.0,   </td><td>Quantal spike-frequency adaptation conductance increase in nS</td></tr><tr><td>
352                     'tau_rr'    </td><td>2.0,    </td><td>Time constant of the relative refractory mechanism in ms</td></tr><tr><td>
353                     'e_rev_rr'  </td><td>-75.0,  </td><td>relative refractory mechanism conductance reversal potential in mV</td></tr><tr><td>
354                     'q_rr'      </td><td>3000.0  </td><td>Quantal relative refractory conductance increase in nS</td></tr></table>
355                 }<br/>
356             </a:documentation>
357             <rng:optional>
358                 <rng:attribute name="v_rest">
359                     <rng:ref name="float_voltage_unit"/>
360                 </rng:attribute>
361             </rng:optional>
362             <rng:optional>
363                 <rng:attribute name="cm">
364                     <rng:ref name="float_capacitance_unit"/>
365                 </rng:attribute>
366             </rng:optional>
367             <rng:optional>
368                 <rng:attribute name="tau_m">
369                     <rng:ref name="float_time_unit"/>
370                 </rng:attribute>
371             </rng:optional>
372             <rng:optional>
373                 <rng:attribute name="tau_refrac">
374                     <rng:ref name="float_time_unit"/>
375                 </rng:attribute>
376             </rng:optional>
377             <rng:optional>
378                 <rng:attribute name="tau_syn_E">
379                     <rng:ref name="float_time_unit"/>
380                 </rng:attribute>
381             </rng:optional>
382             <rng:optional>
383                 <rng:attribute name="tau_syn_I">
384                     <rng:ref name="float_time_unit"/>
385                 </rng:attribute>
386             </rng:optional>
387             <rng:optional>
388                 <rng:attribute name="e_rev_E">
389                     <rng:ref name="float_voltage_unit"/>
390                 </rng:attribute>
391             </rng:optional>
392             <rng:optional>
393                 <rng:attribute name="e_rev_I">
394                     <rng:ref name="float_voltage_unit"/>
395                 </rng:attribute>
396             </rng:optional>
397             <rng:optional>
398                 <rng:attribute name="v_thresh">
399                     <rng:ref name="float_voltage_unit"/>
400                 </rng:attribute>
401             </rng:optional>
402             <rng:optional>
403                 <rng:attribute name="v_reset">
404                     <rng:ref name="float_voltage_unit"/>
405                 </rng:attribute>
406             </rng:optional>
407             <rng:optional>
408                 <rng:attribute name="i_offset">
409                     <rng:ref name="float_current_unit"/>
410                 </rng:attribute>
411             </rng:optional>
412             <rng:optional>
413                 <rng:attribute name="v_init">
414                     <rng:ref name="float_voltage_unit"/>
415                 </rng:attribute>
416             </rng:optional>
417             <rng:optional>
418                 <rng:attribute name="tau_sfa">
419                     <rng:ref name="float_time_unit"/>
420                 </rng:attribute>
421             </rng:optional>
422             <rng:optional>
423                 <rng:attribute name="e_rev_sfa">
424                     <rng:ref name="float_voltage_unit"/>
425                 </rng:attribute>
426             </rng:optional>
427             <rng:optional>
428                 <rng:attribute name="q_sfa">
429                     <rng:ref name="float_conductance_unit"/>
430                 </rng:attribute>
431             </rng:optional>
432             <rng:optional>
433                 <rng:attribute name="tau_rr">
434                     <rng:ref name="float_time_unit"/>
435                 </rng:attribute>
436             </rng:optional>
437             <rng:optional>
438                 <rng:attribute name="e_rev_rr">
439                     <rng:ref name="float_voltage_unit"/>
440                 </rng:attribute>
441             </rng:optional>
442             <rng:optional>
443                 <rng:attribute name="q_rr">
444                     <rng:ref name="float_conductance_unit"/>
445                 </rng:attribute>
446             </rng:optional>
447         </rng:element>
448     </rng:define>
449
450     <rng:define name="AdaptiveExponentialIF_alpha">
451         <rng:element name="AdaptiveExponentialIF_alpha">
452             <a:documentation>
453                 default_parameters = {<table><tr><td>
454                     'v_init'   </td><td>-70.6, #'V_m'       </td><td>Initial membrane potential in mV</td></tr><tr><td>
455                     'w_init'   </td><td>0.0,   #'w'         </td><td>Spike-adaptation current in nA</td></tr><tr><td>
456                     'cm'       </td><td>0.281, #'C_m'       </td><td>Capacity of the membrane in nF</td></tr><tr><td>
457                         'tau_refrac'  </td><td> 0.0,   #'t_ref'     </td><td>Duration of refractory period in ms.</td></tr><tr><td>
458                     'v_spike'  </td><td>0.0,   #'V_peak'    </td><td>Spike detection threshold in mV.</td></tr><tr><td>
459                     'v_reset'  </td><td>-70.6, #'V_reset'   </td><td>Reset value for V_m after a spike. In mV.</td></tr><tr><td>
460                     'v_rest'   </td><td>-70.6, #'E_L'       </td><td>Resting membrane potential (Leak reversal potential) in mV.</td></tr><tr><td>
461                     'tau_m'    </td><td>9.3667,#'g_L'       </td><td>Membrane time constant in ms (nest:Leak conductance in nS.)</td></tr><tr><td>
462                     'i_offset' </td><td>0.0,   #'I_e'       </td><td>Offset current in nA</td></tr><tr><td>
463                     'a'        </td><td>4.0,                </td><td>Subthreshold adaptation conductance in nS.</td></tr><tr><td>
464                     'b'        </td><td>0.0805,             </td><td>Spike-triggered adaptation in nA</td></tr><tr><td>
465                     'delta_T'  </td><td>2.0,  #Delta_T    </td><td>Slope factor in mV</td></tr><tr><td>
466                     'tau_w'    </td><td>144.0, #'tau_w'     </td><td>Adaptation time constant in ms</td></tr><tr><td>
467                     'v_thresh' </td><td>-50.4, #'V_t'       </td><td>Spike initiation threshold in mV (V_th can also be used for compatibility).</td></tr><tr><td>
468                     'e_rev_E'  </td><td>0.0,   #'E_ex'      </td><td>Excitatory reversal potential in mV.</td></tr><tr><td>
469                     'tau_syn_E'</td><td>5.0,   #'tau_ex'    </td><td>Rise time of excitatory synaptic conductance in ms (alpha function).</td></tr><tr><td>
470                     'e_rev_I'  </td><td>-80.0, #'E_in'      </td><td>Inhibitory reversal potential in mV.</td></tr><tr><td>
471                     'tau_syn_I'</td><td>5.0,   #'tau_in'    </td><td>Rise time of the inhibitory synaptic conductance in ms (alpha function).</td></tr></table>
472                 }<br/>
473             </a:documentation>
474             <rng:optional>
475                 <rng:attribute name="v_init">
476                     <rng:ref name="float_voltage_unit"/>
477                 </rng:attribute>
478             </rng:optional>
479             <rng:optional>
480                 <rng:attribute name="w_init">
481                     <rng:ref name="float_current_unit"/>
482                 </rng:attribute>
483             </rng:optional>
484             <rng:optional>
485                 <rng:attribute name="cm">
486                     <rng:ref name="float_capacitance_unit"/>
487                 </rng:attribute>
488             </rng:optional>
489             <rng:optional>
490                 <rng:attribute name="tau_refrac">
491                     <rng:ref name="float_time_unit"/>
492                 </rng:attribute>
493             </rng:optional>
494             <rng:optional>
495                 <rng:attribute name="v_spike">
496                     <rng:ref name="float_voltage_unit"/>
497                 </rng:attribute>
498             </rng:optional>
499             <rng:optional>
500                 <rng:attribute name="v_rest">
501                     <rng:ref name="float_voltage_unit"/>
502                 </rng:attribute>
503             </rng:optional>
504             <rng:optional>
505                 <rng:attribute name="v_reset">
506                     <rng:ref name="float_voltage_unit"/>
507                 </rng:attribute>
508             </rng:optional>
509             <rng:optional>
510                 <rng:attribute name="tau_m">
511                     <rng:ref name="float_time_unit"/>
512                 </rng:attribute>
513             </rng:optional>
514             <rng:optional>
515                 <rng:attribute name="i_offset">
516                     <rng:ref name="float_current_unit"/>
517                 </rng:attribute>
518             </rng:optional>
519             <rng:optional>
520                 <rng:attribute name="a">
521                     <rng:ref name="float_conductance_unit"/>
522                 </rng:attribute>
523             </rng:optional>
524             <rng:optional>
525                 <rng:attribute name="b">
526                     <rng:ref name="float_current_unit"/>
527                 </rng:attribute>
528             </rng:optional>
529             <rng:optional>
530                 <rng:attribute name="delta_T">
531                     <rng:ref name="float_voltage_unit"/>
532                 </rng:attribute>
533             </rng:optional>
534             <rng:optional>
535                 <rng:attribute name="tau_w">
536                     <rng:ref name="float_time_unit"/>
537                 </rng:attribute>
538             </rng:optional>
539             <rng:optional>
540                 <rng:attribute name="v_thresh">
541                     <rng:ref name="float_voltage_unit"/>
542                 </rng:attribute>
543             </rng:optional>
544             <rng:optional>
545                 <rng:attribute name="e_rev_E">
546                     <rng:ref name="float_voltage_unit"/>
547                 </rng:attribute>
548             </rng:optional>
549             <rng:optional>
550                 <rng:attribute name="tau_syn_E">
551                     <rng:ref name="float_time_unit"/>
552                 </rng:attribute>
553             </rng:optional>
554             <rng:optional>
555                 <rng:attribute name="e_rev_I">
556                     <rng:ref name="float_voltage_unit"/>
557                 </rng:attribute>
558             </rng:optional>
559             <rng:optional>
560                 <rng:attribute name="tau_syn_I">
561                     <rng:ref name="float_time_unit"/>
562                 </rng:attribute>
563             </rng:optional>
564         </rng:element>
565     </rng:define>
566
567     <rng:define name="SpikeSourcePoisson">
568         <rng:element name="SpikeSourcePoisson">
569             <a:documentation>
570                 default_parameters = {<table><tr><td>
571                     'rate'    </td><td>0.0,      </td><td>Mean spike frequency (Hz)</td></tr><tr><td>
572                     'start'   </td><td>0.0,      </td><td>Start time (ms)</td></tr><tr><td>
573                     'duration'</td><td>1e6       </td><td>Duration of spike sequence (ms)</td></tr></table>
574                 }<br/>
575             </a:documentation>
576             <rng:optional>
577                 <rng:attribute name="rate">
578                     <rng:ref name="float_frequency_unit"/>
579                 </rng:attribute>
580             </rng:optional>
581             <rng:optional>
582                 <rng:attribute name="start">
583                     <rng:ref name="float_time_unit"/>
584                 </rng:attribute>
585             </rng:optional>
586             <rng:optional>
587                 <rng:attribute name="duration">
588                     <rng:ref name="float_time_unit"/>
589                 </rng:attribute>
590             </rng:optional>
591         </rng:element>
592     </rng:define>
593    
594     <rng:define name="SpikeSourceInhGamma">
595         <rng:element name="SpikeSourceInhGamma">
596             <a:documentation>
597                 default_parameters = {<table><tr><td>
598                 'a'    </td><td>numpy.array([1.0]),</td><td>time histogram of parameter a of a gamma distribution (dimensionaless)</td></tr><tr><td>
599                     'b'    </td><td>numpy.array([1.0]),</td><td>time histogram of parameter b of a gamma distribution (seconds)</td></tr><tr><td>
600                     'tbins'</td><td>numpy.array([0]), </td><td>time bins of the time histogram of a,b in units of ms</td></tr><tr><td>
601                     'rmax'</td><td>1.0,          </td><td>Rate (Hz) of the Poisson process to be thinned, usually set to max(1/b)</td></tr><tr><td>
602                     'start'   </td><td>0.0,      </td><td>Start time (ms)</td></tr><tr><td>
603                     'duration'</td><td>1e6       </td><td>Duration of spike sequence (ms)</td></tr></table>
604                 }<br/>
605             </a:documentation>
606             <rng:attribute name="a">
607                 <rng:text/>
608             </rng:attribute>
609             <rng:attribute name="b">
610                 <rng:text/>
611             </rng:attribute>
612             <rng:attribute name="tbins">
613                 <rng:text/>
614             </rng:attribute>
615             <rng:attribute name="rmax">
616                 <rng:ref name="float_frequency_unit"/>
617             </rng:attribute>
618             <rng:attribute name="start">
619                 <rng:ref name="float_time_unit"/>
620             </rng:attribute>
621             <rng:attribute name="duration">
622                 <rng:ref name="float_time_unit"/>
623             </rng:attribute>
624         </rng:element>
625     </rng:define>
626    
627     <rng:define name="SpikeSourceArray">
628         <rng:element name="SpikeSourceArray">
629             <rng:element name="spike_times">
630                 <a:documentation>
631                     <br/>default_parameters = { 'spike_times' : [] } # list or numpy array containing spike times in milliseconds.<br/>
632                 </a:documentation>
633                 <rng:text/>
634             </rng:element>
635         </rng:element>
636     </rng:define>
637    
638     <rng:define name="NonStandardCellType">
639         <rng:element name="NonStandardCellType">
640             <rng:attribute name="name">
641              <rng:data type="string"/>
642          </rng:attribute>
643             <rng:zeroOrMore>
644                 <rng:element name="cellparams">
645                     <rng:attribute name="name">
646                         <rng:data type="string"/>
647                     </rng:attribute>
648                     <rng:attribute name="value">
649                         <rng:data type="string"/>
650                     </rng:attribute>
651                 </rng:element>
652             </rng:zeroOrMore>
653         </rng:element>
654     </rng:define>
655
656 </rng:grammar>
Note: See TracBrowser for help on using the browser.