Changeset 378
- Timestamp:
- 06/20/08 13:01:57 (5 years ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
src/neuron2/__init__.py (modified) (3 diffs)
-
src/neuron2/cells.py (modified) (2 diffs)
-
test/neuron2tests.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/neuron2/__init__.py
r377 r378 254 254 else: 255 255 self.celltype = cellclass 256 256 257 257 # Build the arrays of cell ids 258 258 # Cells on the local node are represented as ID objects, other cells by integers … … 532 532 'First cell on this node:', 533 533 ' ID: %(local_first_id)d', 534 ' Parameters: %(cell_parameters)s', 535 ] 534 ' Parameters: %(cell_parameters)s'] 536 535 template = "\n".join(rows) 537 536 context = self.__dict__.copy() … … 607 606 connection_method(method_parameters) 608 607 elif isinstance(method, common.Connector): 609 print "simulator.gid_counter = ", simulator.State.gid_counter610 608 method.connect(self) 611 609 -
trunk/src/neuron2/cells.py
r377 r378 117 117 self.vtrace.record(self, 'v') 118 118 self.record_times = neuron.Vector() 119 neuron.h(' %s.record(&t)' % self.record_times.name)119 neuron.h('tmp = %s.record(&t)' % self.record_times.name) 120 120 else: 121 121 self.vtrace = None 122 self.record_times 122 self.record_times = None 123 123 124 124 def memb_init(self, v_init=None): … … 175 175 if not self.do_not_record: # for VecStims, etc, recording doesn't make sense as we already have the spike times 176 176 if active: 177 self.spiketimes.hoc_obj.printf()178 177 self.rec = neuron.NetCon(self.source, None) 179 178 self.rec.record(self.spiketimes.hoc_obj) -
trunk/test/neuron2tests.py
r377 r378 497 497 neuron.run(100.0) 498 498 spikes = spike_source.getSpikes() 499 print spikes500 499 spikes = spikes[:,0] 501 500 if neuron.rank() == 0:
