Changeset 429

Show
Ignore:
Timestamp:
07/29/08 09:54:23 (3 weeks ago)
Author:
apdavison
Message:

Modifications to work with NEST 1.9.7550

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/nest2/__init__.py

    r426 r429  
    323323 
    324324    # set tempdir 
    325     nest.SetStatus([0], {'device_prefix':tempdir,}) 
     325    try: 
     326        nest.SetStatus([0], {'device_prefix':tempdir,}) 
     327    except nest.NESTError:     
     328        nest.SetStatus([0], {'data_path':tempdir,}) 
    326329    # set resolution 
    327330    nest.SetStatus([0], {'resolution': timestep}) 
     
    510513    Returns the filename of the merged file. 
    511514    """ 
    512     nest.FlushDevice(recorder) 
     515    try: 
     516        nest.FlushDevice(recorder) 
     517    except AttributeError: 
     518        pass 
    513519    status = nest.GetStatus([0])[0] 
    514520    local_num_threads = status['local_num_threads']