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)
Exemplo n.º 2
0
    def install(version):
        if not NeuronEngine.is_installed(None):
            NeuronEngine.install(None)
            inform("%s installed NEURON..." % NetPyNEEngine.name, indent=2, verbosity =1)
            
            
        from getnetpyne import install_netpyne
        home = os.environ['HOME']
        inform('Will fetch and install the latest NetPyNE', indent=2)
        install_netpyne()
        inform('Done, NetPyNE is correctly installed...', indent=2)

        NetPyNEEngine.path = NeuronEngine.path
        NetPyNEEngine.environment_vars = {}
        NetPyNEEngine.environment_vars.update(
            NeuronEngine.environment_vars)
            
        inform("PATH: " + NetPyNEEngine.path, indent=2, verbosity =1)
        inform("Env vars: %s" % NetPyNEEngine.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)
Exemplo n.º 3
0
    def install(version):
        if not NeuronEngine.is_installed(None):
            NeuronEngine.install(None)
            inform("%s installed NEURON..." % NetPyNEEngine.name,
                   indent=2,
                   verbosity=1)

        from getnetpyne import install_netpyne
        home = os.environ['HOME']
        inform('Will fetch and install the latest NetPyNE', indent=2)
        install_netpyne()
        inform('Done, NetPyNE is correctly installed...', indent=2)

        NetPyNEEngine.path = NeuronEngine.path
        NetPyNEEngine.environment_vars = {}
        NetPyNEEngine.environment_vars.update(NeuronEngine.environment_vars)

        inform("PATH: " + NetPyNEEngine.path, indent=2, verbosity=1)
        inform("Env vars: %s" % NetPyNEEngine.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)
    def install(version):
        if not NeuronEngine.is_installed(None):
            NeuronEngine.install(None)
            inform("%s installed NEURON..." % PyNRNEngine.name, indent=2, verbosity =1)

        environment_vars_nrn, path_nrn = NeuronEngine.get_nrn_environment()
        
        PyNRNEngine.path = path_nrn
        PyNRNEngine.environment_vars = {}
        PyNRNEngine.environment_vars.update(environment_vars_nrn)
            
        inform("PATH: " + PyNRNEngine.path, indent=2, verbosity =1)
        inform("Env vars: %s" % PyNRNEngine.environment_vars, indent=2, verbosity =1)
Exemplo n.º 5
0
    def install(version):

        if not JNeuroMLEngine.is_installed(None):
            JNeuroMLEngine.install(None)
        if not NeuronEngine.is_installed(None):
            NeuronEngine.install(None)

        environment_vars_nrn, path_nrn = NeuronEngine.get_nrn_environment()

        JNeuroMLNRNEngine.path = JNeuroMLEngine.path + \
            ":" + path_nrn
        JNeuroMLNRNEngine.environment_vars = {}
        JNeuroMLNRNEngine.environment_vars.update(
            JNeuroMLEngine.environment_vars)
        JNeuroMLNRNEngine.environment_vars.update(environment_vars_nrn)
        inform("PATH: " + JNeuroMLNRNEngine.path)
        inform("Env vars: %s" % JNeuroMLNRNEngine.environment_vars)
Exemplo n.º 6
0
    def install(version):
        if not NeuronEngine.is_installed(None):
            NeuronEngine.install(None)
            inform("%s installed NEURON..." % PyNRNEngine.name,
                   indent=2,
                   verbosity=1)

        environment_vars_nrn, path_nrn = NeuronEngine.get_nrn_environment()

        PyNRNEngine.path = path_nrn
        PyNRNEngine.environment_vars = {}
        PyNRNEngine.environment_vars.update(environment_vars_nrn)

        inform("PATH: " + PyNRNEngine.path, indent=2, verbosity=1)
        inform("Env vars: %s" % PyNRNEngine.environment_vars,
               indent=2,
               verbosity=1)
    def install(version):

        if not JNeuroMLEngine.is_installed(None):
            JNeuroMLEngine.install(None)
        if not NeuronEngine.is_installed(None):
            NeuronEngine.install(None)
            
        environment_vars_nrn, path_nrn = NeuronEngine.get_nrn_environment()

        JNeuroMLNRNEngine.path = JNeuroMLEngine.path + \
            ":" + path_nrn
        JNeuroMLNRNEngine.environment_vars = {}
        JNeuroMLNRNEngine.environment_vars.update(
            JNeuroMLEngine.environment_vars)
        JNeuroMLNRNEngine.environment_vars.update(
            environment_vars_nrn)
        inform("PATH: " + JNeuroMLNRNEngine.path)
        inform("Env vars: %s" % JNeuroMLNRNEngine.environment_vars)
    def install(version):

        if not JNeuroMLEngine.is_installed(None):
            JNeuroMLEngine.install(None)
            inform("%s installed JNeuroML..." % JNeuroMLPyNNNRNEngine.name, indent=2, verbosity =1)
        if not PyNNNRNEngine.is_installed(None):
            PyNNNRNEngine.install(None)
            inform("%s installed PyNN & NRN..." % JNeuroMLPyNNNRNEngine.name, indent=2, verbosity =1)
            
        environment_vars_nrn, path_nrn = NeuronEngine.get_nrn_environment()

        JNeuroMLPyNNNRNEngine.path = JNeuroMLEngine.path+":"+path_nrn
        JNeuroMLPyNNNRNEngine.environment_vars = {}
        JNeuroMLPyNNNRNEngine.environment_vars.update(JNeuroMLEngine.environment_vars)
        JNeuroMLPyNNNRNEngine.environment_vars.update(PyNNEngine.environment_vars)
        JNeuroMLPyNNNRNEngine.environment_vars.update(environment_vars_nrn)
        inform("PATH: " + JNeuroMLPyNNNRNEngine.path)
        inform("Env vars: %s" % JNeuroMLPyNNNRNEngine.environment_vars)
Exemplo n.º 9
0
    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)
Exemplo n.º 10
0
    def install(version):

        if not JNeuroMLEngine.is_installed(None):
            JNeuroMLEngine.install(None)
            inform("%s installed JNeuroML..." % JNeuroMLPyNNNRNEngine.name,
                   indent=2,
                   verbosity=1)
        if not PyNNNRNEngine.is_installed(None):
            PyNNNRNEngine.install(None)
            inform("%s installed PyNN & NRN..." % JNeuroMLPyNNNRNEngine.name,
                   indent=2,
                   verbosity=1)

        environment_vars_nrn, path_nrn = NeuronEngine.get_nrn_environment()

        JNeuroMLPyNNNRNEngine.path = JNeuroMLEngine.path + ":" + path_nrn
        JNeuroMLPyNNNRNEngine.environment_vars = {}
        JNeuroMLPyNNNRNEngine.environment_vars.update(
            JNeuroMLEngine.environment_vars)
        JNeuroMLPyNNNRNEngine.environment_vars.update(
            PyNNEngine.environment_vars)
        JNeuroMLPyNNNRNEngine.environment_vars.update(environment_vars_nrn)
        inform("PATH: " + JNeuroMLPyNNNRNEngine.path)
        inform("Env vars: %s" % JNeuroMLPyNNNRNEngine.environment_vars)