Пример #1
0
 def install(version):
     from getjnml import install_jnml
     home = os.environ['HOME']
     p = os.path.join(home, 'jnml/jNeuroMLJar')
     JNeuroMLEngine.path = p
     JNeuroMLEngine.environment_vars = {'JNML_HOME': p}
     inform('Will fetch and install the latest jNeuroML jar', indent=2)
     install_jnml()
Пример #2
0
 def install(version):
     from getjnml import install_jnml
     home = os.environ['HOME']
     p = os.path.join(home, 'jnml/jNeuroMLJar')
     JNeuroMLEngine.path = p
     JNeuroMLEngine.environment_vars = {'JNML_HOME': p}
     inform('Will fetch and install the latest jNeuroML jar', indent=2)
     install_jnml()
Пример #3
0
 def __init__(self, target):
     try:
         FNULL = open(os.devnull, 'w')
         sp.check_call(['jnml', '-h'], stdout=FNULL)
     except OSError:
         from getjnml import install_jnml
         inform('Will fetch and install the latest JNeuroML jar', indent=2)
         install_jnml()
     self.modelpath = target
Пример #4
0
    def __init__(self, target):
        try:
            FNULL = open(os.devnull, "w")
            sp.check_call(["jnml", "-h"], stdout=FNULL)
        except OSError:
            from getjnml import install_jnml

            inform("Will fetch and install the latest JNeuroML jar", indent=2)
            install_jnml()
        self.modelpath = target