Changeset 373
- Timestamp:
- 06/18/08 14:57:35 (5 months ago)
- Files:
-
- trunk/src/nest2/__init__.py (modified) (1 diff)
- trunk/src/recording.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/nest2/__init__.py
r372 r373 118 118 self._device = nest.Create(device_name) 119 119 device_parameters = {"withgid": True, "withtime": True, 120 "to_file": True, "to_memory": False, 121 "interval": get_time_step()} 120 "to_file": True, "to_memory": False} 121 if self.variable != 'spikes': 122 device_parameters["interval"] = get_time_step() 122 123 if file is False: 123 124 device_parameters.update(to_file=False, to_memory=True) trunk/src/recording.py
r372 r373 101 101 elif data.shape[1] == 2: # spike files 102 102 for idx in xrange(len(data)): 103 result.write("%g\t%d\n" % (data[idx][t _column], data[idx][id_column])) # time id103 result.write("%g\t%d\n" % (data[idx][time_column], data[idx][id_column])) # time id 104 104 else: 105 105 raise Exception("Data file should have 2,3 or 4 columns, actually has %d" % data.shape[1])

