ignore import error for fig.py: depends on windows only libraries

master
david.verelst 12 years ago
parent c0e1e7c8f5
commit 0a4e5a3f1c

@ -2,7 +2,7 @@
from info import __doc__ from info import __doc__
import misc import misc
import data import data
import demos import demos
import kdetools import kdetools
import objects import objects
import spectrum import spectrum
@ -10,9 +10,12 @@ import transform
import definitions import definitions
import polynomial import polynomial
import stats import stats
import interpolate import interpolate
import fig
import dctpack import dctpack
try:
import fig
except ImportError:
print 'fig import only supported on Windows'
try: try:
from wafo.version import version as __version__ from wafo.version import version as __version__

@ -24,7 +24,10 @@ from wafo.misc import meshgrid, nextpow2, tranproc #, trangood
from wafo.wafodata import PlotData from wafo.wafodata import PlotData
from wafo.dctpack import dct, dctn, idctn from wafo.dctpack import dct, dctn, idctn
from wafo.plotbackend import plotbackend as plt from wafo.plotbackend import plotbackend as plt
from wafo import fig try:
from wafo import fig
except ImportError:
print 'fig import only supported on Windows'
_TINY = np.finfo(float).machar.tiny _TINY = np.finfo(float).machar.tiny

Loading…
Cancel
Save