Skip to content

Commit 81a4cec

Browse files
committed
Option to install a particular version of jnml
1 parent 4ff8207 commit 81a4cec

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- PyLEMS
3838
- PyLEMS_NeuroML2
3939
- jLEMS
40-
- jNeuroML
40+
- "jNeuroML:v0.12.2"
4141
- jNeuroML_Brian2
4242
- jNeuroML_EDEN
4343
- "jNeuroML_NEURON:8.2.1"

omv/engines/getjnml.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
from pathlib import Path
55

66
from omv.engines.utils.wdir import working_dir
7+
from omv.common.inout import inform
78

89

9-
def install_jnml():
10-
version = "v0.12.2"
10+
def install_jnml(version):
11+
12+
if not version:
13+
version = "v0.12.2"
1114

1215
try:
1316
jnmlhome = os.environ["JNML_HOME"]
@@ -41,3 +44,5 @@ def install_jnml():
4144
]
4245
)
4346
check_output(["unzip", "jNeuroML.zip"])
47+
48+
inform("Successfully installed jNeuroML "+version, indent=1)

omv/omv_util.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,9 @@ def _install_engine(eng):
226226
if ee.is_installed():
227227
already_installed = True
228228
else:
229-
if engine_version is not None:
230-
raise Exception(
231-
"Currently, cannot install a specific version of engine %s"
232-
% eng
233-
)
234229
from omv.engines.getjnml import install_jnml
235230

236-
install_jnml()
231+
install_jnml(engine_version)
237232

238233
elif eng.lower() == "neuroConstruct" or eng == "Py_neuroConstruct".lower():
239234
from omv.engines.pyneuroconstruct import PyneuroConstructEngine as ee

0 commit comments

Comments
 (0)