def install(cls, engine_version): import getnrn cls.environment_vars, cls.path = NeuronEngine.get_nrn_environment() inform('Will fetch and install the latest NEURON version', indent=2) getnrn.install_neuron(get_latest=True)
def install(cls, engine_version): import getnrn cls.environment_vars, cls.path = NeuronEngine.get_nrn_environment() inform('Will fetch and install the latest NEURON version', indent=2) getnrn.install_neuron()
def install(cls, engine_version): import getnrn home = os.environ['HOME'] arch = platform.machine() pp = os.path.join(home, 'local/lib/python/site-packages') cls.path = os.path.join(home, 'neuron/nrn/', arch, 'bin') cls.environment_vars = {'PYTHONPATH': pp, 'NEURON_HOME': os.path.join(home, 'neuron/nrn/', arch)} inform('Will fetch and install the latest NEURON version', indent=2) getnrn.install_neuron()
def install(cls, engine_version): import getnrn home = os.environ['HOME'] arch = platform.machine() pp = os.path.join(home, 'local/lib/python/site-packages') cls.path = os.path.join(home, 'neuron/nrn/', arch, 'bin') cls.environment_vars = { 'PYTHONPATH': pp, 'NEURON_HOME': os.path.join(home, 'neuron/nrn/', arch) } inform('Will fetch and install the latest NEURON version', indent=2) getnrn.install_neuron()
def __init__(self, target): try: FNULL = open(os.devnull, 'w') sp.check_call(['nrniv', '--version'], stdout=FNULL) except OSError: import getnrn inform('Will fetch and install the latest NEURON version', indent=2) getnrn.install_neuron() self.modelpath = realpath(target) self.extra_pars = [] try: self.stdout = self.compile_modfiles() except sp.CalledProcessError as err: self.stderr = err.output self.returncode = err.returncode inform('Error compiling modfiles:', self.stderr, indent=2)