Remove c imports

basic
Dan Howe 5 years ago
parent d336196e24
commit 4857456b8a

@ -9,10 +9,10 @@ import numpy as np
import warnings import warnings
from wafo.plotbackend import plotbackend as plt from wafo.plotbackend import plotbackend as plt
from wafo.kdetools import Kernel, TKDE, KDE, KRegression, BKRegression from wafo.kdetools import Kernel, TKDE, KDE, KRegression, BKRegression
try: # try:
from wafo import fig # from wafo import fig
except ImportError: # except ImportError:
warnings.warn('fig import only supported on Windows') # warnings.warn('fig import only supported on Windows')
__all__ = ['kde_demo1', 'kde_demo2', 'kde_demo3', 'kde_demo4', 'kde_demo5', __all__ = ['kde_demo1', 'kde_demo2', 'kde_demo3', 'kde_demo4', 'kde_demo5',
'kreg_demo1', ] 'kreg_demo1', ]

@ -19,11 +19,11 @@ import warnings
from time import strftime, gmtime from time import strftime, gmtime
from wafo.plotbackend import plotbackend as plt from wafo.plotbackend import plotbackend as plt
import numbers import numbers
try: # try:
from wafo import c_library as clib # @UnresolvedImport # from wafo import c_library as clib # @UnresolvedImport
except ImportError: # except ImportError:
warnings.warn('c_library not found. Check its compilation.') # warnings.warn('c_library not found. Check its compilation.')
clib = None # clib = None
FLOATINFO = np.finfo(float) FLOATINFO = np.finfo(float)
_TINY = FLOATINFO.tiny _TINY = FLOATINFO.tiny
_EPS = FLOATINFO.eps _EPS = FLOATINFO.eps

@ -31,16 +31,16 @@ try:
from wafo.gaussian import Rind from wafo.gaussian import Rind
except ImportError: except ImportError:
Rind = None Rind = None
try: # try:
from wafo import c_library # from wafo import c_library
except ImportError: # except ImportError:
warnings.warn('Compile the c_library.pyd again!') # warnings.warn('Compile the c_library.pyd again!')
c_library = None # c_library = None
try: # try:
from wafo import cov2mod # from wafo import cov2mod
except ImportError: # except ImportError:
warnings.warn('Compile the cov2mod.pyd again!') # warnings.warn('Compile the cov2mod.pyd again!')
cov2mod = None # cov2mod = None
# Trick to avoid error due to circular import # Trick to avoid error due to circular import
_WAFOCOV = JITImport('wafo.covariance') _WAFOCOV = JITImport('wafo.covariance')

Loading…
Cancel
Save