Show
Ignore:
Timestamp:
02/12/10 16:02:09 (2 years ago)
Author:
apdavison
Message:

Various fixes from running doctests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/doc/lowlevelapi.txt

    r707 r708  
    6161stored in the ``default_values`` of the standard cell class, e.g.:: 
    6262 
    63     >>> IF_curr_alpha.default_parameters #doctest" +NORMALIZE_WHITESPACE 
     63    >>> IF_curr_alpha.default_parameters #doctest: +NORMALIZE_WHITESPACE 
    6464    {'tau_refrac': 0.0, 'tau_m': 20.0, 'i_offset': 0.0, 'cm': 1.0, 'v_init': -65.0, 
    6565     'v_thresh': -50.0, 'tau_syn_E': 0.5, 'v_rest': -65.0, 'tau_syn_I': 0.5, 
     
    7575    Traceback (most recent call last): 
    7676      File "<stdin>", line 1, in ? 
    77       File "/usr/lib/python/site-packages/pyNN/nest1.py", line 228, in create 
     77      File "/usr/lib/python/site-packages/pyNN/common.py", line 655, in create 
     78        all_cells, mask_local, first_id, last_id = simulator.create_cells(cellclass, cellparams, n) 
     79      File "/home/andrew/dev/pyNN/neuron/simulator.py", line 287, in create_cells 
    7880        celltype = cellclass(cellparams) 
    79       File "/usr/lib/python/site-packages/pyNN/nest1.py", line 68, in __init__ 
    80         common.IF_curr_alpha.__init__(self,parameters) # checks supplied parameters and adds default 
    81       File "/usr/lib/python/site-packages/pyNN/common.py", line 113, in __init__ 
    82         self.parameters = self.checkParameters(parameters, with_defaults=True) 
    83       File "/usr/lib/python/site-packages/pyNN/common.py", line 99, in checkParameters 
    84         raise NonExistentParameterError(k) 
    85     NonExistentParameterError: foo 
     81      File "/usr/lib/python/site-packages/pyNN/neuron/cells.py", line 442, in __init__ 
     82        cells.IF_curr_alpha.__init__(self, parameters) # checks supplied parameters and adds default 
     83      File "/usr/lib/python/site-packages/pyNN/common.py", line 460, in __init__ 
     84        self.parameters = self.__class__.checkParameters(parameters, with_defaults=True) 
     85      File "/usr/lib/python/site-packages/pyNN/common.py", line 504, in checkParameters 
     86        raise NonExistentParameterError(k, cls) 
     87    NonExistentParameterError: foo (valid parameters for IF_curr_alpha are: cm, i_offset, tau_m, tau_refrac, tau_syn_E, tau_syn_I, v_init, v_reset, v_rest, v_thresh) 
    8688    >>> create(IF_curr_alpha, cellparams={'tau_m': 'bar'}) 
    8789    Traceback (most recent call last):