Changeset 466 for trunk

Show
Ignore:
Timestamp:
09/10/10 21:00:40 (21 months ago)
Author:
mpereira
bzr:base-revision:
svn-v4:400bb3d0-8d2e-0410-a2c0-f692ac833539:trunk:465
bzr:committer:
Michael Pereira <michael.fsp@gmail.com>
bzr:file-ids:

src/analysis.py 106@400bb3d0-8d2e-0410-a2c0-f692ac833539:trunk%2Fsrc%2Fanalysis.py
bzr:mapping-version:
v4
bzr:repository-uuid:
400bb3d0-8d2e-0410-a2c0-f692ac833539
bzr:revision-id:
michael.fsp@gmail.com-20100910190108-eqrby15xsyr8br4e
bzr:revno:
410
bzr:revprop:branch-nick:
NeuroTools_branch
bzr:root:
trunk
bzr:timestamp:
2010-09-10 21:01:08.694999933 +0200
bzr:user-agent:
bzr2.2.0+bzr-svn1.0.3
svn:original-date:
2010-09-10T19:01:08.695000Z
Message:

fixed import bug in analysis.crosscorrelate()

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk

    • Property bzr:see-revprops set to 466
  • trunk/src/analysis.py

    r455 r466  
    2323""" 
    2424 
    25 import os, numpy 
     25import os 
     26 
     27import numpy 
     28 
    2629from NeuroTools import check_dependency, signals 
     30 
     31HAVE_PYLAB = check_dependency('pylab') 
     32HAVE_MATPLOTLIB = check_dependency('matplotlib') 
     33if HAVE_PYLAB: 
     34    import pylab 
     35else: 
     36    PYLAB_ERROR = "The pylab package was not detected" 
     37if not HAVE_MATPLOTLIB: 
     38    MATPLOTLIB_ERROR = "The matplotlib package was not detected" 
     39 
    2740 
    2841def arrays_almost_equal(a, b, threshold):