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 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 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)
def is_installed(version): if is_verbose(): inform("Checking whether %s is installed correctly..." % PyNNNRNEngine.name, indent=1) installed = PyNNEngine.is_installed(None) and NeuronEngine.is_installed(None) return installed
def is_installed(version): inform("Checking whether %s is installed correctly..." % PyNNNRNEngine.name, indent=1) installed = PyNNEngine.is_installed( None) and NeuronEngine.is_installed(None) return installed
def is_installed(version): inform("Checking whether %s is installed..." % PyNNNestEngine.name, indent=1) return PyNNEngine.is_installed(None) and NestEngine.is_installed(None)
def is_installed(version): if is_verbose(): inform("Checking whether %s is installed..." % PyNNBrian1Engine.name, indent=1) return PyNNEngine.is_installed(None) and Brian1Engine.is_installed(None)