File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 44from pathlib import Path
55
66from 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments