Skip to content

Commit

Permalink
CLN: Remove calls to object.__init__()
Browse files Browse the repository at this point in the history
With removal of legacy ensembling, only feature libraries that inherit
a non-trivial init are ParameterizedLibrary and PolynomialLibrary
  • Loading branch information
Jacob-Stevens-Haas committed Jul 6, 2023
1 parent 20fa916 commit c459660
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions pysindy/feature_library/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ def __init__(
self,
libraries: list,
):
super().__init__()
self.libraries = libraries

@x_sequence_or_item
Expand Down Expand Up @@ -335,7 +334,6 @@ def __init__(
libraries: list,
inputs_per_library: Optional[Sequence[Sequence[int]]] = None,
):
super().__init__()
self.libraries = libraries
self.inputs_per_library = inputs_per_library

Expand Down
1 change: 0 additions & 1 deletion pysindy/feature_library/custom_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def __init__(
interaction_only=True,
include_bias=False,
):
super().__init__()
self.functions = library_functions
self.function_names = function_names
if function_names and (
Expand Down
1 change: 0 additions & 1 deletion pysindy/feature_library/fourier_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def __init__(
include_sin=True,
include_cos=True,
):
super().__init__()
if not (include_sin or include_cos):
raise ValueError("include_sin and include_cos cannot both be False")
if n_frequencies < 1 or not isinstance(n_frequencies, int):
Expand Down
1 change: 0 additions & 1 deletion pysindy/feature_library/generalized_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def __init__(
inputs_per_library: Optional[Sequence[Sequence[int]]] = None,
exclude_libraries=[],
):
super().__init__()
if len(libraries) > 0:
self.libraries = libraries

Expand Down
1 change: 0 additions & 1 deletion pysindy/feature_library/pde_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def __init__(
is_uniform=None,
periodic=None,
):
super().__init__()
self.functions = library_functions
self.derivative_order = derivative_order
self.function_names = function_names
Expand Down
1 change: 0 additions & 1 deletion pysindy/feature_library/sindy_pi_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ def __init__(
differentiation_method=None,
include_bias=False,
):
super().__init__()
self.x_functions = library_functions
self.x_dot_functions = x_dot_library_functions
self.function_names = function_names
Expand Down
1 change: 0 additions & 1 deletion pysindy/feature_library/weak_pde_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ def __init__(
is_uniform=None,
periodic=None,
):
super().__init__()
self.functions = library_functions
self.derivative_order = derivative_order
self.function_names = function_names
Expand Down

0 comments on commit c459660

Please sign in to comment.