From 4857456b8a6f0e2e2fc212e3b47f4756c16ba4bd Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Fri, 19 Jul 2019 16:32:19 +1000 Subject: [PATCH] Remove c imports --- wafo/kdetools/demo.py | 8 ++++---- wafo/misc.py | 10 +++++----- wafo/spectrum/core.py | 20 ++++++++++---------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/wafo/kdetools/demo.py b/wafo/kdetools/demo.py index 31ab612..10c8914 100644 --- a/wafo/kdetools/demo.py +++ b/wafo/kdetools/demo.py @@ -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', ] diff --git a/wafo/misc.py b/wafo/misc.py index bd6abe6..e892d4c 100644 --- a/wafo/misc.py +++ b/wafo/misc.py @@ -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 diff --git a/wafo/spectrum/core.py b/wafo/spectrum/core.py index 0b2ddda..322f011 100644 --- a/wafo/spectrum/core.py +++ b/wafo/spectrum/core.py @@ -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')