|
@@ -28,14 +28,15 @@ import wx
|
|
|
import wx.lib.colourselect as csel
|
|
|
|
|
|
try:
|
|
|
+ import numpy
|
|
|
import wx.lib.plot as plot
|
|
|
-except:
|
|
|
+except ImportError:
|
|
|
msg= """
|
|
|
- This module requires the NumPy module,
|
|
|
- which could not be imported. It probably is not installed
|
|
|
- (it's not part of the standard Python distribution). See the
|
|
|
- Numeric Python site (http://numpy.scipy.org) for information on
|
|
|
- downloading source or binaries."""
|
|
|
+ This module requires the NumPy module, which could not be
|
|
|
+ imported. It probably is not installed (it's not part of the
|
|
|
+ standard Python distribution). See the Numeric Python site
|
|
|
+ (http://numpy.scipy.org) for information on downloading source or
|
|
|
+ binaries."""
|
|
|
print >> sys.stderr, "profile.py: " + msg
|
|
|
|
|
|
import globalvar
|