From 525d8184c73e6d1c62e5b0641b5a7ff82f11b6ab Mon Sep 17 00:00:00 2001 From: Zachary Nicolaou Date: Thu, 30 Nov 2023 19:59:16 -0800 Subject: [PATCH] removed unused and uncovered functions --- pysindy/feature_library/pde_library.py | 8 -------- pysindy/feature_library/weak_pde_library.py | 10 ---------- 2 files changed, 18 deletions(-) diff --git a/pysindy/feature_library/pde_library.py b/pysindy/feature_library/pde_library.py index 871220027..89b53a35c 100644 --- a/pysindy/feature_library/pde_library.py +++ b/pysindy/feature_library/pde_library.py @@ -1,6 +1,4 @@ import warnings -from itertools import combinations -from itertools import combinations_with_replacement as combinations_w_r from itertools import product as iproduct import numpy as np @@ -205,12 +203,6 @@ def __init__( spatiotemporal_grid, comprehend_axes(spatiotemporal_grid) ) - @staticmethod - def _combinations(n_features, n_args, interaction_only): - """Get the combinations of features to be passed to a library function.""" - comb = combinations if interaction_only else combinations_w_r - return comb(range(n_features), n_args) - def get_feature_names(self, input_features=None): """Return feature names for output features. diff --git a/pysindy/feature_library/weak_pde_library.py b/pysindy/feature_library/weak_pde_library.py index 8afded57d..fe82518ff 100644 --- a/pysindy/feature_library/weak_pde_library.py +++ b/pysindy/feature_library/weak_pde_library.py @@ -1,6 +1,4 @@ import warnings -from itertools import combinations -from itertools import combinations_with_replacement as combinations_w_r from itertools import product as iproduct import numpy as np @@ -505,14 +503,6 @@ def _set_up_weights(self): weights2 = weights2 + [ret * np.prod(H_xt_k[k] ** (1.0 - deriv))] self.fullweights1 = self.fullweights1 + [weights2] - @staticmethod - def _combinations(n_features, n_args, interaction_only): - """ - Get the combinations of features to be passed to a library function. - """ - comb = combinations if interaction_only else combinations_w_r - return comb(range(n_features), n_args) - def _phi(self, x, d, p): """ One-dimensional polynomial test function (1-x**2)**p,