From 4c755d297bce144bbdf526efcc89f7be1a96aee6 Mon Sep 17 00:00:00 2001 From: Markus Quade Date: Thu, 23 Jan 2020 11:08:17 +0100 Subject: [PATCH] fix hidden circular imports --- .github/workflows/main.yml | 2 +- pysindy/feature_library/__init__.py | 1 - pysindy/feature_library/custom_library.py | 2 +- pysindy/feature_library/fourier_library.py | 2 +- pysindy/feature_library/polynomial_library.py | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 60be828a1..e581bb3f0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: Tests -on: [push, pull_request] +on: [push] jobs: Linting: diff --git a/pysindy/feature_library/__init__.py b/pysindy/feature_library/__init__.py index 47c63d93c..91b5cae2a 100644 --- a/pysindy/feature_library/__init__.py +++ b/pysindy/feature_library/__init__.py @@ -1,4 +1,3 @@ from .custom_library import CustomLibrary -from .feature_library import BaseFeatureLibrary from .fourier_library import FourierLibrary from .polynomial_library import PolynomialLibrary diff --git a/pysindy/feature_library/custom_library.py b/pysindy/feature_library/custom_library.py index b87d33815..480ad5f0f 100644 --- a/pysindy/feature_library/custom_library.py +++ b/pysindy/feature_library/custom_library.py @@ -5,7 +5,7 @@ from sklearn.utils import check_array from sklearn.utils.validation import check_is_fitted -from pysindy.feature_library import BaseFeatureLibrary +from .feature_library import BaseFeatureLibrary class CustomLibrary(BaseFeatureLibrary): diff --git a/pysindy/feature_library/fourier_library.py b/pysindy/feature_library/fourier_library.py index ed5d62923..293dd9212 100644 --- a/pysindy/feature_library/fourier_library.py +++ b/pysindy/feature_library/fourier_library.py @@ -2,7 +2,7 @@ from sklearn.utils import check_array from sklearn.utils.validation import check_is_fitted -from pysindy.feature_library import BaseFeatureLibrary +from .feature_library import BaseFeatureLibrary class FourierLibrary(BaseFeatureLibrary): diff --git a/pysindy/feature_library/polynomial_library.py b/pysindy/feature_library/polynomial_library.py index e99a6af17..4273fe4d4 100644 --- a/pysindy/feature_library/polynomial_library.py +++ b/pysindy/feature_library/polynomial_library.py @@ -10,7 +10,7 @@ from sklearn.utils.validation import check_is_fitted from sklearn.utils.validation import FLOAT_DTYPES -from pysindy.feature_library import BaseFeatureLibrary +from .feature_library import BaseFeatureLibrary class PolynomialLibrary(PolynomialFeatures, BaseFeatureLibrary):