Changeset 351

Show
Ignore:
Timestamp:
06/11/08 16:01:19 (5 months ago)
Author:
apdavison
Message:

In the neuronmodule, setup() now does a better job of reinitialising the network

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.4/src/neuron/__init__.py

    r337 r351  
    299299    simulator but not by others. 
    300300    """ 
    301     global nhost, myid, logger, initialised, quit_on_end 
     301    global nhost, myid, logger, initialised, quit_on_end, running 
    302302    load_mechanisms() 
    303303    if 'quit_on_end' in extra_params: 
     
    323323        hoc_commands = ['dt = %f' % timestep, 
    324324                        'min_delay = %g' % min_delay] 
     325        running = False 
    325326    else: 
    326327        hoc_commands = [ 
     
    359360        #myid = HocToPy.get('pc.id()','int') 
    360361        myid = int(h.pc.id()) 
    361     print "\nHost #%d of %d" % (myid+1, nhost) 
     362    #print "\nHost #%d of %d" % (myid+1, nhost) 
     363    vfilelist = {} 
     364    spikefilelist = {} 
    362365     
    363366    initialised = True