Skip to content

Commit 12f6457

Browse files
committed
Merge branch 'development' into feat-use-jnml-from-pyneuroml
2 parents b03ae0e + 75fd39b commit 12f6457

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: [ "3.10" ]
18+
python-version: [ "3.11" ]
1919
engine:
2020
- Arbor
2121
- "Brian2:2.9.0"
@@ -39,7 +39,7 @@ jobs:
3939
- "jNeuroML:v0.12.3"
4040
- jNeuroML_Brian2
4141
- jNeuroML_EDEN
42-
- "jNeuroML_NEURON:8.2.1"
42+
- "jNeuroML_NEURON:8.2.7"
4343
- jNeuroML_NetPyNE
4444
- jNeuroML_PyNN_NEURON
4545
- jNeuroML_validate
@@ -67,6 +67,11 @@ jobs:
6767
#sudo apt install octave
6868
sudo apt-get install -y subversion # for neuroConstruct full install...
6969
70+
- name: Install numpy < 2 if necessary...
71+
run: |
72+
if [[ ${{ matrix.engine }} == *"MOOSE"* ]] || [[ ${{ matrix.engine }} == *"Moose"* ]]; then pip install "numpy<2" ; fi ;
73+
pip list
74+
7075
- name: Run OMV tests on engine ${{ matrix.engine }}
7176
run: |
7277
# Not yet checked: Octave, genesis

.github/workflows/ci_versions.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Test across versions
22

33
on:
4+
schedule:
5+
- cron: "1 1 15 */1 *" # Run once a month to test...
46
push:
57
branches: [ master, development, experimental, test* ]
68
pull_request:
@@ -13,8 +15,8 @@ jobs:
1315
strategy:
1416
fail-fast: false
1517
matrix:
16-
python-version: ["3.9", "3.10", "3.11", "3.12"]
17-
runs-on: [ubuntu-latest, macos-latest, ubuntu-24.04 ]
18+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
19+
runs-on: [ubuntu-latest, macos-latest ]
1820
exclude:
1921
- runs-on: macos-latest
2022
python-version: ["3.9"]

omv/engines/getmoose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
def install_moose(version):
55
if not version:
6-
version = "4.0.0"
6+
version = "4.0.0.dev20240411"
77
try:
88
pip_install("pymoose", version)
99
import moose

omv/engines/getnrn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def install_neuron(version):
1111
if not version:
1212
if sys.version_info.major == 3:
13-
version = "8.2.6" # for pynn 0.11.0
13+
version = "8.2.7" # for pynn 0.11.0
1414
else:
1515
version = "7.6"
1616

omv/engines/neuron_.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def is_installed():
8585
inform("Checking whether %s is installed..." % NeuronEngine.name, indent=1)
8686
try:
8787
output = check_output(["nrniv", "--version"], verbosity=2)
88+
output = output[output.index('NEURON'):]
8889
if is_verbose():
8990
inform(
9091
"%s is installed; env: %s"

omv/omv_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ def main():
154154
]:
155155
installed_ver = False
156156
try:
157-
exec("import %s" % m)
158-
installed_ver = "v%s" % eval("%s.__version__" % m)
157+
mod = __import__(m)
158+
installed_ver = "v%s" % getattr(mod, "__version__", "unknown")
159159
except Exception:
160160
pass
161161
inform(

0 commit comments

Comments
 (0)