Show
Ignore:
Timestamp:
08/05/08 15:38:51 (4 months ago)
Author:
apdavison
Message:

* Added some __str__() methods
* time_bin can now be a list of bin edges instead of a numerical value.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/analysis.py

    r187 r188  
    118118        """ 
    119119        self._tuning_curves = {} 
     120        self._counts = {} 
    120121        if D is not None: 
    121122            for k,v in D.items(): 
    122123                self._tuning_curves[k] = [v] 
     124                self._counts[k] = 1 
    123125                self.n = 1 
    124126        else: 
     
    128130        for k,v  in D.items(): 
    129131            self._tuning_curves[k].append(v) 
     132            self._counts[k] += 1 
    130133        self.n += 1 
    131134 
     
    135138            D[k] = v[i] 
    136139        return D 
     140     
     141    def __repr__(self): 
     142        return "TuningCurve: %s" % self._tuning_curves 
    137143 
    138144    def stats(self):