Changeset 1053
- Timestamp:
- 01/31/12 12:23:49 (4 months ago)
- Files:
-
- 1 modified
-
trunk/src/nest/recording.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/nest/recording.py
r1029 r1053 83 83 Numpy array. 84 84 """ 85 ids = events['senders'] 85 if events.has_key('senders'): 86 ids = events['senders'] 87 else: 88 ## That mean that we are using the accumulator mode of NEST ## 89 ids = list(self._all_ids)[0] * numpy.ones(len(events['times'])) 86 90 times = events['times'] 87 91 if self.type == 'spike_detector': … … 90 94 data = [ids, times] 91 95 for var in self.record_from: 92 data.append(events[var]) 93 data = numpy.array(data).T 96 if events.has_key('senders'): 97 data.append(events[var]) 98 else: 99 data.append(events[var]/len(self._all_ids)) 100 data = numpy.array(data).T 94 101 return data 95 102
