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/src/brian/electrodes.py

    r626 r708  
    66    StepCurrentSource  -- a step-wise time-varying current. 
    77 
    8 $Id:$ 
     8$Id$ 
    99""" 
    1010 
     
    3333    def inject_into(self, cell_list): 
    3434        """Inject this current source into some cells.""" 
     35        for cell in cell_list: 
     36            if 'v' not in cell.cellclass.recordable: 
     37                raise TypeError("Can't inject current into a spike source.") 
    3538        self.cell_list.extend(cell_list)         
    3639