Exemple #1
0
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)
#  ******************************************************
# 
#     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")')
Exemple #3
0
from neuron import hoc

hoc.execute('load_file("Simple.hoc")')
Exemple #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")')
#  ******************************************************
# 
#     File generated by: neuroConstruct v1.5.1
# 
#  ******************************************************

import neuron
from neuron import hoc
import nrn

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