def install(version): if not NestEngine.is_installed(None): NestEngine.install(None) inform("%s installed Nest..." % PyNNNestEngine.name, indent=2, verbosity =1) if not PyNNEngine.is_installed(None): PyNNEngine.install(None) inform("%s installed PyNN..." % PyNNNestEngine.name, indent=2, verbosity =1)
def install(version): if not NeuronEngine.is_installed(None): NeuronEngine.install(None) inform("%s installed NEURON..." % PyNNNRNEngine.name, indent=2, verbosity =1) if not PyNNEngine.is_installed(None): PyNNEngine.install(None) inform("%s installed PyNN..." % PyNNNRNEngine.name, indent=2, verbosity =1) PyNNNRNEngine.path = PyNNEngine.path + \ ":" + NeuronEngine.path PyNNNRNEngine.environment_vars = {} PyNNNRNEngine.environment_vars.update( PyNNEngine.environment_vars) PyNNNRNEngine.environment_vars.update( NeuronEngine.environment_vars) inform("PATH: " + PyNNNRNEngine.path, indent=2, verbosity =1) inform("Env vars: %s" % PyNNNRNEngine.environment_vars, indent=2, verbosity =1) import pyNN pynn_mod_dir = os.path.dirname(pyNN.__file__)+'/neuron/nmodl/' inform("Attempting to compile PyNN mod files for standard models in %s..."%pynn_mod_dir, indent=2, verbosity =1) print check_output(['ls', pynn_mod_dir], cwd=pynn_mod_dir) environment_vars, path = NeuronEngine.get_nrn_environment() inform("Using NEURON with env %s at %s..."%(environment_vars, path), indent=2, verbosity =1) print check_output([environment_vars['NEURON_HOME']+'/bin/nrnivmodl'], cwd=pynn_mod_dir)
def install(version): if not NeuronEngine.is_installed(None): NeuronEngine.install(None) inform("%s installed NEURON..." % PyNNNRNEngine.name, indent=2, verbosity=1) if not PyNNEngine.is_installed(None): PyNNEngine.install(None) inform("%s installed PyNN..." % PyNNNRNEngine.name, indent=2, verbosity=1) PyNNNRNEngine.path = PyNNEngine.path + \ ":" + NeuronEngine.path PyNNNRNEngine.environment_vars = {} PyNNNRNEngine.environment_vars.update(PyNNEngine.environment_vars) PyNNNRNEngine.environment_vars.update(NeuronEngine.environment_vars) inform("PATH: " + PyNNNRNEngine.path, indent=2, verbosity=1) inform("Env vars: %s" % PyNNNRNEngine.environment_vars, indent=2, verbosity=1) import pyNN pynn_mod_dir = os.path.dirname(pyNN.__file__) + '/neuron/nmodl/' inform( "Attempting to compile PyNN mod files for standard models in %s..." % pynn_mod_dir, indent=2, verbosity=1) print check_output(['ls', pynn_mod_dir], cwd=pynn_mod_dir) print check_output( [NeuronEngine.environment_vars['NEURON_HOME'] + '/bin/nrnivmodl'], cwd=pynn_mod_dir)
def install(version): if not NestEngine.is_installed(None): NestEngine.install(None) inform("%s installed Nest..." % PyNNNestEngine.name, indent=2, verbosity=1) if not PyNNEngine.is_installed(None): PyNNEngine.install(None) inform("%s installed PyNN..." % PyNNNestEngine.name, indent=2, verbosity=1)
def install(version): if not NestEngine.is_installed(None): NestEngine.install(None) inform("%s installed Nest..." % PyNNNestEngine.name, indent=2, verbosity =1) if not PyNNEngine.is_installed(None): PyNNEngine.install(None) inform("%s installed PyNN..." % PyNNNestEngine.name, indent=2, verbosity =1) PyNNNestEngine.path = PyNNEngine.path + \ ":" + NestEngine.path PyNNNestEngine.environment_vars = {} PyNNNestEngine.environment_vars.update( PyNNEngine.environment_vars) PyNNNestEngine.environment_vars.update( NestEngine.environment_vars) inform("PATH: " + PyNNNestEngine.path)