Changeset 708 for trunk/src/pcsim/electrodes.py
- Timestamp:
- 02/12/10 16:02:09 (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/pcsim/electrodes.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pcsim/electrodes.py
r705 r708 19 19 def inject_into(self, cell_list): 20 20 """Inject this current source into some cells.""" 21 print "injecting current source into cells: %s" % str(cell_list)22 21 if simulator.state.num_processes == 1: 23 22 delay = 0.0 … … 25 24 delay = simulator.state.min_delay # perhaps it would be better to replicate the current source on each node, to avoid this delay 26 25 for cell in cell_list: 27 print cell, cell.local, cell.cellclass.recordable28 26 if cell.local and 'v' not in cell.cellclass.recordable: 29 27 raise TypeError("Can't inject current into a spike source.") 30 28 c = simulator.net.connect(self.input_node, cell, pypcsim.StaticAnalogSynapse(delay=0.001*delay)) 31 29 self.connections.append(c) 32 print "connected current source to cell %s" % cell33 30 34 31
