Skip to content

Commit dd5bc42

Browse files
committed
Merge branch 'development' into test_pyversions
2 parents c4ffa01 + f347645 commit dd5bc42

35 files changed

+107
-146
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ on:
1111
jobs:
1212
build:
1313

14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
python-version: [ "3.11" ]
1919
engine:
2020
- Arbor
21-
- "Brian2:2.4"
21+
- "Brian2:2.9.0"
2222
- Brian2
2323
- EDEN
2424
- "NEST:3.3"
@@ -63,8 +63,9 @@ jobs:
6363
- name: Install OMV
6464
run: |
6565
pip install .
66-
pip install scipy sympy matplotlib cython pandas tables
66+
pip install scipy sympy matplotlib "cython<3.1.0" pandas tables
6767
#sudo apt install octave
68+
sudo apt-get install -y subversion # for neuroConstruct full install...
6869
6970
- name: Run OMV tests on engine ${{ matrix.engine }}
7071
run: |

.github/workflows/ci_versions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
python-version: ["3.9", "3.10", "3.11", "3.12"]
17-
runs-on: [ubuntu-latest, macos-latest]
17+
runs-on: [ubuntu-latest, macos-latest, ubuntu-24.04 ]
1818
exclude:
1919
- runs-on: macos-latest
20-
python-version: "3.9"
20+
python-version: ["3.9"]
2121

2222
steps:
2323
- uses: actions/checkout@v4
@@ -50,4 +50,4 @@ jobs:
5050
run: |
5151
omv list -V # list installed engines
5252
env
53-
pip list
53+
pip list

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,4 @@ Since you can run the validation with different [engines](https://github.com/Ope
157157
### Running tests automatically on GitHub Actions
158158

159159
To use OMV with GHA, copy an existing configuration file, e.g. https://github.com/OpenSourceBrain/ACnet2/blob/master/.github/workflows/omv-ci.yml and place it in the required repository.
160+

omv/autogen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def read_option(options, default=0):
2727
opt = None
2828
while opt is None:
2929
try:
30-
sel = int(raw_input("Select option number [default: %s]: " % default))
30+
sel = int(input("Select option number [default: %s]: " % default))
3131
opt = options[sel]
3232
except IndexError:
3333
print("invalid index!")

omv/common/inout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def check_output(cmds, cwd=".", shell=False, verbosity=0, env=None):
103103
if env:
104104
joint_env.update(env)
105105
for k in os.environ:
106-
if not k in joint_env:
106+
if k not in joint_env:
107107
joint_env[k] = os.environ[k]
108108

109109
try:

omv/engines/engine.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from os.path import realpath
22
from os import environ
3-
import sys
43
from omv.common.inout import inform
54
import platform
65

@@ -78,8 +77,8 @@ def build_query_string(self, name, cmd):
7877
def set_environment(self):
7978
if self.environment_vars:
8079
for name, val in self.environment_vars.items():
81-
if name in environ and not "HOME" in name:
82-
if not ":%s:" % val in environ[name]:
80+
if name in environ and "HOME" not in name:
81+
if ":%s:" % val not in environ[name]:
8382
environ[name] = "%s:%s" % (environ[name], val)
8483
else:
8584
environ[name] = val

omv/engines/getarbor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def install_arbor(version=None):
88
pip_install("arbor==%s" % version)
99
import arbor
1010

11-
m = "Successfully installed Arbor..."
11+
m = "Successfully installed Arbor %s..."%arbor.__version__
1212
except Exception as e:
1313
m = "ERROR installing Arbor: " + str(e)
1414
finally:

omv/engines/getbrian1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import pip
32
from omv.common.inout import inform, check_output
43
from omv.engines.utils.wdir import working_dir
54

omv/engines/getbrian2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
def install_brian2(version):
77
if not version:
8-
version = "2.5.3"
8+
version = "2.7.1"
99
try:
1010
pip_install("brian2", version)
1111
import brian2
1212

13-
m = "Successfully installed Brian2..."
13+
m = "Successfully installed Brian2 %s..."%brian2.__version__
1414
except Exception as e:
1515
m = "ERROR installing Brian2: " + str(e)
1616
finally:

omv/engines/getjnml.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88

99

1010
def install_jnml(version):
11-
1211
if not version:
13-
version = "v0.13.3"
12+
version = "v0.14.0"
1413

1514
try:
1615
jnmlhome = os.environ["JNML_HOME"]
@@ -45,4 +44,4 @@ def install_jnml(version):
4544
)
4645
check_output(["unzip", "jNeuroML.zip"])
4746

48-
inform("Successfully installed jNeuroML "+version, indent=1)
47+
inform("Successfully installed jNeuroML " + version, indent=1)

0 commit comments

Comments
 (0)