Remove c imports

basic
Dan Howe 5 years ago
parent d336196e24
commit 4857456b8a

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

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

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

Loading…
Cancel
Save