Skip to content

Commit

Permalink
Retesting max/min impl - still need to write max/min to XML
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Sep 19, 2023
1 parent 0eb3d1f commit 446b65e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
11 changes: 8 additions & 3 deletions ci/run-apitest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
#
# Run api tests on GitHub actions

python examples/apitest.py
python examples/apitest2.py
python examples/loadtest.py
cd examples
python apitest.py
python apitest2.py
python apitest3.py
python loadtest.py
python apitest_maxmin.py
cd ..


# Update NeuroML2 path for CI
if [ "$CI" = "true" ]; then
Expand Down
4 changes: 2 additions & 2 deletions examples/apitest_maxmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

model = lems.Model()

model.add(lems.Include("maxmin.xml"))
#model.add(lems.Include("maxmin.xml"))

model.add(lems.Dimension("voltage", m=1, l=3, t=-3, i=-1))
model.add(lems.Dimension("time", t=1))
Expand All @@ -21,7 +21,7 @@
iaf1.add(lems.Parameter("reset", "voltage"))


fn = "/tmp/maxmin.xml"
fn = "maxmin.xml"
model.export_to_file(fn)

print("----------------------------------------------")
Expand Down
13 changes: 13 additions & 0 deletions examples/maxmin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<Lems xmlns="http://www.neuroml.org/lems/0.7.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.neuroml.org/lems/0.7.6 https://raw.githubusercontent.com/LEMS/LEMS/development/Schemas/LEMS/LEMS_v0.7.6.xsd">
<Dimension name="voltage" m="1" l="3" t="-3" i="-1"/>
<Dimension name="time" t="1"/>
<Dimension name="capacitance" m="-1" l="-2" t="4" i="2"/>
<Unit symbol="mV" dimension="voltage" power="-3" scale="1.0"/>
<Unit symbol="ms" dimension="time" power="-3" scale="1.0"/>
<Unit symbol="uF" dimension="capacitance" power="-12" scale="1.0"/>
<ComponentType name="iaf1" description="">
<Parameter name="threshold" dimension="voltage"/>
<Parameter name="reset" dimension="voltage"/>
</ComponentType>
</Lems>

0 comments on commit 446b65e

Please sign in to comment.