Changeset 446 for trunk/src/random.py

Show
Ignore:
Timestamp:
04/12/10 15:37:12 (2 years ago)
Author:
apdavison
Message:

SpikeTrain.time_slice() now (again) accepts a sequence of t_start values and a sequence of t_stop values, if you wish to extract multiple slices.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/random.py

    r353 r446  
    2020 
    2121have_scipy = check_dependency('scipy') 
    22 if have_scipy: 
    23     import scipy.stats 
    2422 
    2523     
     
    9593        self.dist_name = 'GammaDist' 
    9694 
    97     if have_scipy:     
     95    if have_scipy: 
     96        import scipy.stats 
    9897        def next(self,n=1): 
    9998            return scipy.stats.gamma.rvs(self.params['a'],size=n)*self.params['b']