Changeset 412

Show
Ignore:
Timestamp:
07/20/09 17:14:22 (3 years ago)
Author:
pierre
Message:

Fix in the SpikeList Constructor, to avoid an uncomplete construction that may sometimes takes place if the data file contains neurons that do not have fired at all.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/signals/spikes.py

    r406 r412  
     1# -*- coding: utf-8 -*- 
    12""" 
    23NeuroTools.signals.spikes 
     
    816817                if id in id_list: 
    817818                    self.spiketrains[id] = SpikeTrain(spikes[break_points[idx]:break_points[idx+1], 1], self.t_start, self.t_stop) 
     819         
     820        self.complete(id_list) 
    818821         
    819822        if len(self) > 0 and (self.t_start is None or self.t_stop is None):