Created
November 23, 2020 17:16
-
-
Save mstimberg/a990d274568dab0c56e283a11d144ebf to your computer and use it in GitHub Desktop.
Example for problem in NeuroML2 export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.githubusercontent.com/LEMS/LEMS/development/Schemas/LEMS/LEMS_v0.7.3.xsd"> | |
<Include file="LEMSUnitsConstants.xml"/> | |
<Include file="Simulation.xml"/> | |
<Include file="NeuroML2CoreTypes.xml"/> | |
<ComponentType extends="baseCell" name="neurongroup"> | |
<Property dimension="voltage" name="v0"/> | |
<EventPort direction="out" name="spike"/> | |
<Exposure dimension="voltage" name="v"/> | |
<Dynamics> | |
<StateVariable dimension="voltage" exposure="v" name="v"/> | |
<TimeDerivative value="(v0 - v) / (10 * ms)" variable="v"/> | |
<OnStart/> | |
<OnCondition test="v .gt. (10 * mV)"> | |
<EventOut port="spike"/> | |
<StateAssignment value="0*mV" variable="v"/> | |
</OnCondition> | |
</Dynamics> | |
</ComponentType> | |
<ComponentType extends="basePopulation" name="neurongroupMulti"> | |
<Parameter dimension="none" name="N"/> | |
<Constant dimension="voltage" name="mVconst" symbol="mVconst" value="1mV"/> | |
<Structure> | |
<MultiInstantiate componentType="neurongroup" number="N"> | |
<Assign property="v0" value="20*mVconst * index / ( n-1 ) "/> | |
</MultiInstantiate> | |
</Structure> | |
</ComponentType> | |
<network id="neurongroupMultiNet"> | |
<Component N="5" id="neurongroupMultipop" type="neurongroupMulti"/> | |
</network> | |
<Simulation id="sim1" length="1s" step="0.1ms" target="neurongroupMultiNet"/> | |
<Target component="sim1"/> | |
</Lems> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.githubusercontent.com/LEMS/LEMS/development/Schemas/LEMS/LEMS_v0.7.3.xsd"> | |
<Constant dimension="conductance" name="nS" symbol="nS" value="1e-09"/> | |
<Constant dimension="current" name="pA" symbol="pA" value="1e-12"/> | |
<Constant dimension="volume" name="um3" symbol="um3" value="1e-18"/> | |
<Constant dimension="area" name="um2" symbol="um2" value="1e-12"/> | |
<Constant dimension="length" name="mm" symbol="mm" value="0.001"/> | |
<Constant dimension="current" name="nA" symbol="nA" value="1e-09"/> | |
<Constant dimension="capacitance" name="uF" symbol="uF" value="1e-06"/> | |
<Constant dimension="volume" name="mm3" symbol="mm3" value="1e-09"/> | |
<Constant dimension="area" name="mm2" symbol="mm2" value="1e-06"/> | |
<Constant dimension="length" name="um" symbol="um" value="1e-06"/> | |
<Constant dimension="voltage" name="mV" symbol="mV" value="0.001"/> | |
<Constant dimension="capacitance" name="pF" symbol="pF" value="1e-12"/> | |
<Constant dimension="conductance" name="uS" symbol="uS" value="1e-06"/> | |
<Constant dimension="time" name="ms" symbol="ms" value="0.001"/> | |
<Constant dimension="capacitance" name="nF" symbol="nF" value="1e-09"/> | |
<Constant dimension="resistance" name="Mohm" symbol="Mohm" value="1000000.0"/> | |
<Constant dimension="resistance" name="kohm" symbol="kohm" value="1000.0"/> | |
<Constant dimension="current" name="uA" symbol="uA" value="1e-06"/> | |
</Lems> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment