コード例 #1
0
ファイル: __init__.py プロジェクト: anilbey/nrn
def hoc_execute(hoc_commands, comment=None):
    assert isinstance(hoc_commands, list)
    if comment:
        logging.debug(comment)
    for cmd in hoc_commands:
        logging.debug(cmd)
        success = hoc.execute(cmd)
        if not success:
            raise HocError('Error produced by hoc command "%s"' % cmd)
コード例 #2
0
ファイル: run_twoNeurons.py プロジェクト: dilawar/neurons_sim
#  ******************************************************
# 
#     File generated by: neuroConstruct v1.7.0
# 
#  ******************************************************

import neuron
from neuron import hoc
import nrn

#  Note: As neuroConstruct already generates hoc, much of this is reused and not (yet) converted 
#  to pure Python. It is mainly the cell and network creation that will benefit from the Python parsing of XML/HDF5

hoc.execute('load_file("twoNeurons.hoc")')
コード例 #3
0
ファイル: run.py プロジェクト: slarson/neuroConstruct
from neuron import hoc

hoc.execute('load_file("Simple.hoc")')
コード例 #4
0
#  ******************************************************
#
#     File generated by: neuroConstruct v1.4.1
#
#  ******************************************************

import neuron
from neuron import hoc
import nrn

#  Note: As neuroConstruct already generates hoc, much of this is reused and not (yet) converted
#  to pure Python. It is mainly the cell and network creation that will benefit from the Python parsing of XML/HDF5

hoc.execute('load_file("TestHDF5.hoc")')
コード例 #5
0
ファイル: run_TestHDF5.py プロジェクト: DrJaul/neuroConstruct
#  ******************************************************
# 
#     File generated by: neuroConstruct v1.5.1
# 
#  ******************************************************

import neuron
from neuron import hoc
import nrn

hoc.execute('load_file("TestHDF5.hoc")')