Skip to content

Commit

Permalink
attempt to make ode tests a bit faster
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasWeise committed Oct 27, 2023
1 parent 9081556 commit c800acc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/dynamic_control/test_ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def __run_ode_test(instance: Instance,
n_reps: Final[int] = 2

starting_states: Final[np.ndarray] = random.uniform(
-100.0, 100.0, (n_tests, state_dim))
-10.0, 10.0, (n_tests, state_dim))
s2: Final[np.ndarray] = np.copy(starting_states)
params: Final[np.ndarray] = random.uniform(
-100.0, 100.0, (n_tests, param_dim))
-10.0, 10.0, (n_tests, param_dim))
p2: Final[np.ndarray] = np.copy(params)
steps: Final[list[int]] = list(map(int, random.integers(10, 50, n_tests)))
steps: Final[list[int]] = list(map(int, random.integers(10, 15, n_tests)))
t2: Final[np.ndarray] = np.copy(steps)
ctrl: Final[Callable[[np.ndarray, float, np.ndarray, np.ndarray], None]] \
= controller.controller
Expand Down

0 comments on commit c800acc

Please sign in to comment.