Skip to content

Commit

Permalink
removed unused and uncovered functions
Browse files Browse the repository at this point in the history
  • Loading branch information
znicolaou committed Dec 1, 2023
1 parent 5e0b473 commit 525d818
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions pysindy/feature_library/pde_library.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down
10 changes: 0 additions & 10 deletions pysindy/feature_library/weak_pde_library.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 525d818

Please sign in to comment.