Changeset 972

Show
Ignore:
Timestamp:
05/28/11 22:21:06 (12 months ago)
Author:
mhull
Message:

Changes to pyNN.neuron so that when building from nineml, we add bindings to the list of recordables.
Printed out where we are calling 'nrnivmodl' from.

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/neuron/nineml.py

    r971 r972  
    9999    from nineml2nmodl import write_nmodl 
    100100    write_nmodl(xml_file, weight_variables) # weight variables should really come from xml file 
     101 
     102    print "Running 'nrnivmodl' from %s"%NMODL_DIR 
    101103    p = subprocess.check_call(["nrnivmodl"]) 
    102104    os.chdir(cwd) 
  • trunk/src/nineml/cells.py

    r971 r972  
    394394         
    395395         
    396         dct["recordable"] = [port.name for port in reduced_component.analog_ports] + ['spikes', 'regime'] 
     396        # Recording from bindings: 
     397        dct["recordable"] = [port.name for port in reduced_component.analog_ports] + ['spikes', 'regime'] + [binding.name for binding in reduced_component.bindings] 
     398         
    397399        dct["weight_variables"] = dict([ (syn.namespace,syn.namespace+'_'+syn.weight_connector ) 
    398400                                         for syn in synapse_components ])