Skip to content

Commit

Permalink
BLD: Revert python3.10 syntax (type union pipe) to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Dec 6, 2023
1 parent 2662af3 commit 639ea9d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pysindy/optimizers/trapping_sr3.py
Expand Up @@ -2,6 +2,7 @@
from itertools import combinations_with_replacement as combo_wr
from itertools import product
from typing import Tuple
from typing import Union

import cvxpy as cp
import numpy as np
Expand Down Expand Up @@ -160,18 +161,18 @@ class TrappingSR3(ConstrainedSR3):
def __init__(
self,
*,
eta: float | None = None,
eta: Union[float, None] = None,
eps_solver: float = 1e-7,
relax_optim: bool = True,
inequality_constraints=False,
alpha_A: float | None = None,
alpha_m: float | None = None,
alpha_A: Union[float, None] = None,
alpha_m: Union[float, None] = None,
gamma: float = -0.1,
tol_m: float = 1e-5,
thresholder: str = "l1",
accel: bool = False,
m0: NDArray | None = None,
A0: NDArray | None = None,
m0: Union[NDArray, None] = None,
A0: Union[NDArray, None] = None,
**kwargs,
):
super().__init__(thresholder=thresholder, **kwargs)
Expand Down

0 comments on commit 639ea9d

Please sign in to comment.