Skip to content

Commit

Permalink
Regenerated nets
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed May 14, 2024
1 parent 7b85b65 commit ff939da
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 62 deletions.
4 changes: 2 additions & 2 deletions NeuroML2/BC1_StimNet.net.nml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta5.xsd" id="BC1_StimNet">
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.xsd" id="BC1_StimNet">
<include href="BC1_na_k.cell.nml"/>
<pulseGenerator id="stim0" delay="50ms" duration="200ms" amplitude="0.5nA"/>
<network id="BC1_StimNet">
<population id="BC" component="BC1_na_k" type="populationList">
<instance id="0">
<location x="0." y="0." z="0."/>
<location x="0.0" y="0.0" z="0.0"/>
</instance>
</population>
<inputList id="stim0_input" population="BC" component="stim0">
Expand Down
4 changes: 2 additions & 2 deletions NeuroML2/BC2_StimNet.net.nml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta5.xsd" id="BC2_StimNet">
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.xsd" id="BC2_StimNet">
<include href="BC2_na_k.cell.nml"/>
<pulseGenerator id="stim0" delay="50ms" duration="200ms" amplitude="0.5nA"/>
<network id="BC2_StimNet">
<population id="BC" component="BC2_na_k" type="populationList">
<instance id="0">
<location x="0." y="0." z="0."/>
<location x="0.0" y="0.0" z="0.0"/>
</instance>
</population>
<inputList id="stim0_input" population="BC" component="stim0">
Expand Down
4 changes: 2 additions & 2 deletions NeuroML2/BC6_StimNet.net.nml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2beta5.xsd" id="BC6_StimNet">
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.xsd" id="BC6_StimNet">
<include href="BC6_na_k.cell.nml"/>
<pulseGenerator id="stim0" delay="50ms" duration="200ms" amplitude="0.5nA"/>
<network id="BC6_StimNet">
<population id="BC" component="BC6_na_k" type="populationList">
<instance id="0">
<location x="0." y="0." z="0."/>
<location x="0.0" y="0.0" z="0.0"/>
</instance>
</population>
<inputList id="stim0_input" population="BC" component="stim0">
Expand Down
4 changes: 2 additions & 2 deletions NeuroML2/CreateNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def create_network_for_cell(cell_ref):
to_save = {'%s_voltages.dat'%cell_id:[]}

for seg_id in interesting_seg_ids:
to_plot.values()[0].append('%s/0/%s/%s/v'%(pop.id, pop.component,seg_id))
to_save.values()[0].append('%s/0/%s/%s/v'%(pop.id, pop.component,seg_id))
to_plot['Some_voltages'].append('%s/0/%s/%s/v'%(pop.id, pop.component,seg_id))
to_save['%s_voltages.dat'%cell_id].append('%s/0/%s/%s/v'%(pop.id, pop.component,seg_id))

generate_lems_file_for_neuroml(sim_id,
nml_file,
Expand Down
35 changes: 17 additions & 18 deletions NeuroML2/LEMS_Test_BC1.xml
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
<Lems>

<!--
This LEMS file has been automatically generated using PyNeuroML v0.3.14 (libNeuroML v0.2.45)
This LEMS file has been automatically generated using PyNeuroML v1.2.12 (libNeuroML v0.5.9)
-->

<!-- Specify which component to run -->
<Target component="Test"/>

<!-- Include core NeuroML2 ComponentType definitions -->
<Include file="Cells.xml"/>
<Include file="Networks.xml"/>
<Include file="Simulation.xml"/>

<Include file="BC1_StimNet.net.nml"/>
<Include file="BC1_na_k.cell.nml"/>
<Include file="pas.channel.nml"/>
<Include file="channelConvert/Na_BC.channel.nml"/>
<Include file="channelConvert/K_BC.channel.nml"/>

<Simulation id="Test" length="400ms" step="0.025ms" target="BC1_StimNet" seed="12345"> <!-- Note seed: ensures same random numbers used every run -->

<Display id="Some_voltages" title="Plots of Some_voltages" timeScale="1ms" xmin="-40.0" xmax="440.0" ymin="-80" ymax="40">
<Line id="BC_0_BC1_na_k_0_v" quantity="BC/0/BC1_na_k/0/v" scale="1mV" color="#6aa799" timeScale="1ms"/>
<Line id="BC_0_BC1_na_k_1000_v" quantity="BC/0/BC1_na_k/1000/v" scale="1mV" color="#029a72" timeScale="1ms"/>
<Line id="BC_0_BC1_na_k_2000_v" quantity="BC/0/BC1_na_k/2000/v" scale="1mV" color="#d340bb" timeScale="1ms"/>
<Line id="BC_0_BC1_na_k_10000_v" quantity="BC/0/BC1_na_k/10000/v" scale="1mV" color="#4c73a9" timeScale="1ms"/>

<Simulation id="Test" length="400.0ms" step="0.025ms" target="BC1_StimNet" seed="12345"> <!-- Note seed: ensures same random numbers used every run -->
<Display id="Some_voltages" title="Plots of Some_voltages" timeScale="1ms" xmin="-40.0" xmax="440.00000000000006" ymin="-80" ymax="40">
<Line id="BC_0_BC1_na_k_0_v" quantity="BC/0/BC1_na_k/0/v" scale="1mV" color="#d54f33" timeScale="1ms"/>
<Line id="BC_0_BC1_na_k_1000_v" quantity="BC/0/BC1_na_k/1000/v" scale="1mV" color="#0534e4" timeScale="1ms"/>
<Line id="BC_0_BC1_na_k_2000_v" quantity="BC/0/BC1_na_k/2000/v" scale="1mV" color="#98e752" timeScale="1ms"/>
<Line id="BC_0_BC1_na_k_10000_v" quantity="BC/0/BC1_na_k/10000/v" scale="1mV" color="#bca074" timeScale="1ms"/>
</Display>

<OutputFile id="BC1_na_k_voltages_dat" fileName="BC1_na_k_voltages.dat">
<OutputColumn id="BC_0_BC1_na_k_0_v" quantity="BC/0/BC1_na_k/0/v"/>
<OutputColumn id="BC_0_BC1_na_k_1000_v" quantity="BC/0/BC1_na_k/1000/v"/>
<OutputColumn id="BC_0_BC1_na_k_2000_v" quantity="BC/0/BC1_na_k/2000/v"/>
<OutputColumn id="BC_0_BC1_na_k_10000_v" quantity="BC/0/BC1_na_k/10000/v"/>
<OutputColumn id="BC_0_BC1_na_k_0_v" quantity="BC/0/BC1_na_k/0/v"/>
<OutputColumn id="BC_0_BC1_na_k_1000_v" quantity="BC/0/BC1_na_k/1000/v"/>
<OutputColumn id="BC_0_BC1_na_k_2000_v" quantity="BC/0/BC1_na_k/2000/v"/>
<OutputColumn id="BC_0_BC1_na_k_10000_v" quantity="BC/0/BC1_na_k/10000/v"/>
</OutputFile>

</Simulation>

</Lems>
35 changes: 17 additions & 18 deletions NeuroML2/LEMS_Test_BC2.xml
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
<Lems>

<!--
This LEMS file has been automatically generated using PyNeuroML v0.3.14 (libNeuroML v0.2.45)
This LEMS file has been automatically generated using PyNeuroML v1.2.12 (libNeuroML v0.5.9)
-->

<!-- Specify which component to run -->
<Target component="Test"/>

<!-- Include core NeuroML2 ComponentType definitions -->
<Include file="Cells.xml"/>
<Include file="Networks.xml"/>
<Include file="Simulation.xml"/>

<Include file="BC2_StimNet.net.nml"/>
<Include file="BC2_na_k.cell.nml"/>
<Include file="pas.channel.nml"/>
<Include file="channelConvert/Na_BC.channel.nml"/>
<Include file="channelConvert/K_BC.channel.nml"/>

<Simulation id="Test" length="400ms" step="0.025ms" target="BC2_StimNet" seed="12345"> <!-- Note seed: ensures same random numbers used every run -->

<Display id="Some_voltages" title="Plots of Some_voltages" timeScale="1ms" xmin="-40.0" xmax="440.0" ymin="-80" ymax="40">
<Line id="BC_0_BC2_na_k_0_v" quantity="BC/0/BC2_na_k/0/v" scale="1mV" color="#6aa799" timeScale="1ms"/>
<Line id="BC_0_BC2_na_k_1000_v" quantity="BC/0/BC2_na_k/1000/v" scale="1mV" color="#029a72" timeScale="1ms"/>
<Line id="BC_0_BC2_na_k_2000_v" quantity="BC/0/BC2_na_k/2000/v" scale="1mV" color="#d340bb" timeScale="1ms"/>
<Line id="BC_0_BC2_na_k_10000_v" quantity="BC/0/BC2_na_k/10000/v" scale="1mV" color="#4c73a9" timeScale="1ms"/>

<Simulation id="Test" length="400.0ms" step="0.025ms" target="BC2_StimNet" seed="12345"> <!-- Note seed: ensures same random numbers used every run -->
<Display id="Some_voltages" title="Plots of Some_voltages" timeScale="1ms" xmin="-40.0" xmax="440.00000000000006" ymin="-80" ymax="40">
<Line id="BC_0_BC2_na_k_0_v" quantity="BC/0/BC2_na_k/0/v" scale="1mV" color="#d54f33" timeScale="1ms"/>
<Line id="BC_0_BC2_na_k_1000_v" quantity="BC/0/BC2_na_k/1000/v" scale="1mV" color="#0534e4" timeScale="1ms"/>
<Line id="BC_0_BC2_na_k_2000_v" quantity="BC/0/BC2_na_k/2000/v" scale="1mV" color="#98e752" timeScale="1ms"/>
<Line id="BC_0_BC2_na_k_10000_v" quantity="BC/0/BC2_na_k/10000/v" scale="1mV" color="#bca074" timeScale="1ms"/>
</Display>

<OutputFile id="BC2_na_k_voltages_dat" fileName="BC2_na_k_voltages.dat">
<OutputColumn id="BC_0_BC2_na_k_0_v" quantity="BC/0/BC2_na_k/0/v"/>
<OutputColumn id="BC_0_BC2_na_k_1000_v" quantity="BC/0/BC2_na_k/1000/v"/>
<OutputColumn id="BC_0_BC2_na_k_2000_v" quantity="BC/0/BC2_na_k/2000/v"/>
<OutputColumn id="BC_0_BC2_na_k_10000_v" quantity="BC/0/BC2_na_k/10000/v"/>
<OutputColumn id="BC_0_BC2_na_k_0_v" quantity="BC/0/BC2_na_k/0/v"/>
<OutputColumn id="BC_0_BC2_na_k_1000_v" quantity="BC/0/BC2_na_k/1000/v"/>
<OutputColumn id="BC_0_BC2_na_k_2000_v" quantity="BC/0/BC2_na_k/2000/v"/>
<OutputColumn id="BC_0_BC2_na_k_10000_v" quantity="BC/0/BC2_na_k/10000/v"/>
</OutputFile>

</Simulation>

</Lems>
35 changes: 17 additions & 18 deletions NeuroML2/LEMS_Test_BC6.xml
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
<Lems>

<!--
This LEMS file has been automatically generated using PyNeuroML v0.3.14 (libNeuroML v0.2.45)
This LEMS file has been automatically generated using PyNeuroML v1.2.12 (libNeuroML v0.5.9)
-->

<!-- Specify which component to run -->
<Target component="Test"/>

<!-- Include core NeuroML2 ComponentType definitions -->
<Include file="Cells.xml"/>
<Include file="Networks.xml"/>
<Include file="Simulation.xml"/>

<Include file="BC6_StimNet.net.nml"/>
<Include file="BC6_na_k.cell.nml"/>
<Include file="pas.channel.nml"/>
<Include file="channelConvert/Na_BC.channel.nml"/>
<Include file="channelConvert/K_BC.channel.nml"/>

<Simulation id="Test" length="400ms" step="0.025ms" target="BC6_StimNet" seed="12345"> <!-- Note seed: ensures same random numbers used every run -->

<Display id="Some_voltages" title="Plots of Some_voltages" timeScale="1ms" xmin="-40.0" xmax="440.0" ymin="-80" ymax="40">
<Line id="BC_0_BC6_na_k_0_v" quantity="BC/0/BC6_na_k/0/v" scale="1mV" color="#6aa799" timeScale="1ms"/>
<Line id="BC_0_BC6_na_k_1000_v" quantity="BC/0/BC6_na_k/1000/v" scale="1mV" color="#029a72" timeScale="1ms"/>
<Line id="BC_0_BC6_na_k_2000_v" quantity="BC/0/BC6_na_k/2000/v" scale="1mV" color="#d340bb" timeScale="1ms"/>
<Line id="BC_0_BC6_na_k_10000_v" quantity="BC/0/BC6_na_k/10000/v" scale="1mV" color="#4c73a9" timeScale="1ms"/>

<Simulation id="Test" length="400.0ms" step="0.025ms" target="BC6_StimNet" seed="12345"> <!-- Note seed: ensures same random numbers used every run -->
<Display id="Some_voltages" title="Plots of Some_voltages" timeScale="1ms" xmin="-40.0" xmax="440.00000000000006" ymin="-80" ymax="40">
<Line id="BC_0_BC6_na_k_0_v" quantity="BC/0/BC6_na_k/0/v" scale="1mV" color="#d54f33" timeScale="1ms"/>
<Line id="BC_0_BC6_na_k_1000_v" quantity="BC/0/BC6_na_k/1000/v" scale="1mV" color="#0534e4" timeScale="1ms"/>
<Line id="BC_0_BC6_na_k_2000_v" quantity="BC/0/BC6_na_k/2000/v" scale="1mV" color="#98e752" timeScale="1ms"/>
<Line id="BC_0_BC6_na_k_10000_v" quantity="BC/0/BC6_na_k/10000/v" scale="1mV" color="#bca074" timeScale="1ms"/>
</Display>

<OutputFile id="BC6_na_k_voltages_dat" fileName="BC6_na_k_voltages.dat">
<OutputColumn id="BC_0_BC6_na_k_0_v" quantity="BC/0/BC6_na_k/0/v"/>
<OutputColumn id="BC_0_BC6_na_k_1000_v" quantity="BC/0/BC6_na_k/1000/v"/>
<OutputColumn id="BC_0_BC6_na_k_2000_v" quantity="BC/0/BC6_na_k/2000/v"/>
<OutputColumn id="BC_0_BC6_na_k_10000_v" quantity="BC/0/BC6_na_k/10000/v"/>
<OutputColumn id="BC_0_BC6_na_k_0_v" quantity="BC/0/BC6_na_k/0/v"/>
<OutputColumn id="BC_0_BC6_na_k_1000_v" quantity="BC/0/BC6_na_k/1000/v"/>
<OutputColumn id="BC_0_BC6_na_k_2000_v" quantity="BC/0/BC6_na_k/2000/v"/>
<OutputColumn id="BC_0_BC6_na_k_10000_v" quantity="BC/0/BC6_na_k/10000/v"/>
</OutputFile>

</Simulation>

</Lems>

0 comments on commit ff939da

Please sign in to comment.