Skip to content

Commit ee90c89

Browse files
committed
Merge branch 'development' of github.com:LEMS/pylems into development
* 'development' of github.com:LEMS/pylems: Fix for flake - remove global Update README.md Remove whitespaces xml files Ran ruff on python Whitespaces removed Remove global when not required
2 parents 57c2668 + bfc227b commit ee90c89

30 files changed

+196
-210
lines changed

.readthedocs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ python:
1515
path: .
1616
extra_requirements:
1717
- doc
18-

LICENSE.lesser

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,3 @@ whether future versions of the GNU Lesser General Public License shall
163163
apply, that proxy's public statement of acceptance of any version is
164164
permanent authorization for you to choose that version for the
165165
Library.
166-

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,3 @@ bench:
7373

7474
@echo "PyPy"
7575
@${TIME} pypy pylems -nogui ${BENCHFILE} > /dev/null
76-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Michael Vella, Robert C. Cannon, Sharon Crook, Andrew P. Davison, Gautham Ganapa
1313
**libNeuroML and PyLEMS: using Python to combine procedural and declarative modeling approaches in computational neuroscience**
1414
[Frontiers in Neuroinformatics 2014](http://journal.frontiersin.org/Journal/10.3389/fninf.2014.00038/abstract), doi: 10.3389/fninf.2014.00038
1515

16-
_**PLEASE CITE THE PAPER ABOVE IF YOU USE PYLEMS!**_
16+
_**PLEASE CITE THE PAPER ABOVE IF YOU USE PYLEMS!**_
1717

1818
For more details on LEMS see:
1919

ci/run-apitest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Copyright 2023 LEMS contributors
4-
# Author: Ankur Sinha <sanjay DOT ankur AT gmail DOT com>
4+
# Author: Ankur Sinha <sanjay DOT ankur AT gmail DOT com>
55
# File : run-apitest.sh
66
#
77
# Run api tests on GitHub actions
@@ -18,4 +18,4 @@ if [ "$CI" = "true" ]; then
1818
sed -i 's|../NeuroML2|./NeuroML2|g' lems/dlems/exportdlems.py;
1919
fi
2020
fi
21-
python lems/dlems/exportdlems.py
21+
python lems/dlems/exportdlems.py

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys
1514
import os
15+
import sys
1616

1717
# If extensions (or modules to document with autodoc) are in another directory,
1818
# add these directories to sys.path here. If the directory is relative to the

doc/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ User documentation
1111
:maxdepth: 3
1212

1313
modules
14-

examples/MultiRunSimulation.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<ComponentType name="DisplayList">
55
<Parameter name="timeScale" dimension="time"/>
66
<Children name="lines" type="Line"/>
7-
8-
<Text name="title"/>
7+
8+
<Text name="title"/>
99
<Text name="display"/>
1010
</ComponentType>
1111

1212

1313

1414
<ComponentType name="Display">
15-
<Text name="title"/>
15+
<Text name="title"/>
1616
<Parameter name="xmin" dimension="none"/>
1717
<Parameter name="xmax" dimension="none"/>
1818
<Parameter name="ymin" dimension="none"/>
@@ -45,7 +45,7 @@
4545
<Dynamics>
4646
<StateVariable name="t" dimension="time"/>
4747
</Dynamics>
48-
48+
4949
<Simulation>
5050
<Run component="target" variable="t" increment="step" total="length"/>
5151
</Simulation>
@@ -56,8 +56,8 @@
5656
<ComponentType name="SimulationSet">
5757
<Children name="simulations" type="Simulation"/>
5858
<Children name="displays" type="Display"/>
59-
60-
59+
60+
6161
</ComponentType>
6262

63-
</Lems>
63+
</Lems>

examples/SimpleTest.xml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
11
<Lems>
22

33
<Target component="sim1"/>
4-
4+
55
<!-- Include standard NeuroML2 ComponentType definitions -->
66
<Include file="Simulation.xml"/>
7-
8-
7+
8+
99
<ComponentType name="simpleCell">
10-
10+
1111
<Parameter name="v0" dimension="voltage"/>
1212
<Parameter name="v1" dimension="voltage"/>
1313
<Parameter name="tau" dimension="time"/>
14-
14+
1515
<Exposure name="v" dimension="voltage" description="Membrane potential"/>
16-
16+
1717
<Child name="membrane" type="membrane"/>
18-
18+
1919
<Dynamics>
2020
<DerivedVariable name="v" dimension="voltage" exposure="v" value="v0 + (t*(v1-v0)/tau)"/>
2121

2222
</Dynamics>
2323

2424
</ComponentType>
25-
25+
2626
<ComponentType name="membrane">
27-
27+
2828
<Parameter name="g" dimension="conductance"/>
2929
<Parameter name="E" dimension="voltage"/>
3030
<Exposure name="I" dimension="current"/>
3131
<Exposure name="I2" dimension="none"/>
3232
<Requirement name="v" dimension="voltage"/>
33-
33+
3434
<Dynamics>
3535
<DerivedVariable name="I" dimension="current" exposure="I" value="g * (E-v)"/>
3636
<DerivedVariable name="I2" dimension="none" exposure="I2" value="v/E"/>
3737
</Dynamics>
3838

3939
</ComponentType>
40-
41-
42-
40+
41+
42+
4343
<simpleCell id="cell0" v0="-100 mV" v1="100 mV" tau="200 ms">
4444
<membrane g="10 pS" E="50 mV"/>
4545
</simpleCell>
46-
47-
46+
47+
4848
<Simulation id="sim1" length="5ms" step="1ms" target="cell0">
49-
49+
5050
<Display id="d1" title="Voltage" timeScale="1ms" xmin="-20" xmax="220" ymin="-110" ymax="110">
5151
<Line id="v" quantity="v" scale="1mV" color="#ffffff" timeScale="1ms"/>
5252
</Display>
53-
53+
5454
<Display id="d2" title="Current" timeScale="1ms" xmin="-20" xmax="220" ymin="-1" ymax="2">
5555
<Line id="I" quantity="membrane/I" scale="1pS" color="#ffffff" timeScale="1ms"/>
5656
<Line id="I2" quantity="membrane/I2" scale="1" color="#f22fff" timeScale="1ms"/>
5757
</Display>
58-
58+
5959

6060
<OutputFile id="of0" fileName="simp.dat">
6161
<OutputColumn id="v" quantity="v"/>
6262
<OutputColumn id="m" quantity="membrane/I"/>
6363
<OutputColumn id="m" quantity="membrane/I2"/>
64-
</OutputFile>
64+
</OutputFile>
6565

6666
</Simulation>
6767

6868

6969

70-
</Lems>
70+
</Lems>

examples/bounce-conditional.xml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Lems>
22

3-
<Target component="sim"/>
4-
3+
<Target component="sim"/>
4+
55
<Dimension name="length" l="1" />
66
<Dimension name="time" t="1" />
77
<Dimension name="speed" l="1" t="-1"/>
88
<Dimension name="acceleration" l="1" t="-2"/>
9-
9+
1010
<Unit symbol="s" dimension="time"/>
1111
<Unit symbol="m" dimension="length"/>
1212
<Unit symbol="m_per_s" dimension="speed"/>
@@ -20,18 +20,18 @@
2020
<Parameter name="t1" dimension="time"/>
2121
<Parameter name="t2" dimension="time"/>
2222
<Exposure name="height" dimension="time"/>
23-
23+
2424
<Constant name="AccG" dimension="acceleration" value="9.8m_per_s2"/>
25-
25+
2626
<Dynamics>
2727
<StateVariable name="height" exposure="height" dimension="length"/>
2828
<StateVariable name="vel" dimension="speed"/>
29-
29+
3030
<OnStart>
3131
<StateAssignment variable="height" value="y0"/>
3232
<StateAssignment variable="vel" value="0"/>
3333
</OnStart>
34-
34+
3535
<ConditionalDerivedVariable name="effacc" dimension="acceleration">
3636
<Case condition="t .lt. t1" value="-1 * AccG"/>
3737
<Case condition="t .lt. t2" value="-0.1 * AccG"/>
@@ -48,25 +48,25 @@
4848
</OnCondition>
4949
</Dynamics>
5050
</ComponentType>
51-
52-
5351

54-
52+
53+
54+
5555
<ball id="ball" fbounce="0.9" y0="5m" t1="5s" t2="10s"/>
56-
57-
56+
57+
5858
<Include file="SingleSimulation.xml" />
59-
59+
6060

6161

6262
<Simulation id="sim" length="20s" step="0.01s" target="ball">
6363
<Display id="disp1" title="Net1" xmin="0" xmax="30" ymin="-1" ymax="6" timeScale="1s">
6464
<Line id="g0" timeScale="1s" quantity="height" scale="1m" color="#0000f0"/>
65-
66-
</Display>
67-
68-
69-
65+
66+
</Display>
67+
68+
69+
7070
</Simulation>
7171

72-
</Lems>
72+
</Lems>

0 commit comments

Comments
 (0)