Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
python-version: [ "3.11" ]
engine:
- Arbor
- "Brian2:2.9.0"
Expand All @@ -39,7 +39,7 @@ jobs:
- "jNeuroML:v0.12.3"
- jNeuroML_Brian2
- jNeuroML_EDEN
- "jNeuroML_NEURON:8.2.1"
- "jNeuroML_NEURON:8.2.7"
- jNeuroML_NetPyNE
- jNeuroML_PyNN_NEURON
- jNeuroML_validate
Expand Down Expand Up @@ -67,6 +67,11 @@ jobs:
#sudo apt install octave
sudo apt-get install -y subversion # for neuroConstruct full install...

- name: Install numpy < 2 if necessary...
run: |
if [[ ${{ matrix.engine }} == *"MOOSE"* ]] || [[ ${{ matrix.engine }} == *"Moose"* ]]; then pip install "numpy<2" ; fi ;
pip list

- name: Run OMV tests on engine ${{ matrix.engine }}
run: |
# Not yet checked: Octave, genesis
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: [ubuntu-latest, macos-latest, ubuntu-24.04 ]
exclude:
- runs-on: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion omv/engines/getmoose.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def install_moose(version):
if not version:
version = "4.0.0"
version = "4.0.0.dev20240411"
try:
pip_install("pymoose", version)
import moose
Expand Down
2 changes: 1 addition & 1 deletion omv/engines/getnrn.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def install_neuron(version):
if not version:
if sys.version_info.major == 3:
version = "8.2.6" # for pynn 0.11.0
version = "8.2.7" # for pynn 0.11.0
else:
version = "7.6"

Expand Down
1 change: 1 addition & 0 deletions omv/engines/neuron_.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def is_installed():
inform("Checking whether %s is installed..." % NeuronEngine.name, indent=1)
try:
output = check_output(["nrniv", "--version"], verbosity=2)
output = output[output.index('NEURON'):]
if is_verbose():
inform(
"%s is installed; env: %s"
Expand Down
6 changes: 3 additions & 3 deletions omv/engines/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def resolve_paths(path_s):
import glob

if PATH_DELIMITER in path_s:
all = []
all_paths = []
for p in path_s.split(PATH_DELIMITER):
for g in glob.glob(p):
all.append(g)
path_s = all
all_paths.append(g)
path_s = all_paths
else:
path_s = glob.glob(path_s)

Expand Down
4 changes: 2 additions & 2 deletions omv/omv_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def main():
]:
installed_ver = False
try:
exec("import %s" % m)
installed_ver = "v%s" % eval("%s.__version__" % m)
mod = __import__(m)
installed_ver = "v%s" % getattr(mod, "__version__", "unknown")
except Exception:
pass
inform(
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = OSBModelValidation
version = 0.3.7
version = 0.3.8
author = Boris Marin, Padraig Gleeson
author_email = [email protected]
url = https://github.com/OpenSourceBrain/osb-model-validation
Expand Down