Skip to content

Commit 534ab67

Browse files
authored
Update files with ode_solver (#95)
* Update ode_utils.py merge ode_solver into ide_utils * Delete ngclearn/utils/diffeq/ode_solver.py * Update ode_utils.py refactor doc-string * Update odes.py * Update sindy.md ode_solver to ode_utils
1 parent 36e8152 commit 534ab67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/museum/sindy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Solving LSQ with the sparse matrix $\mathbf{\Theta_s}$ and $\mathbf{W_s}$ and fi
280280
import numpy as np
281281
import jax.numpy as jnp
282282
from ngclearn.utils.feature_dictionaries.polynomialLibrary import PolynomialLibrary
283-
from ngclearn.utils.diffeq.ode_solver import solve_ode
283+
from ngclearn.utils.diffeq.ode_utils import solve_ode
284284
from ngclearn.utils.diffeq.odes import lorenz, linear_2D
285285

286286
jnp.set_printoptions(suppress=True, precision=5)

ngclearn/utils/diffeq/odes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def oscillator(t, x, params, mu1=0.05, mu2=-0.01, omega=3.0, alpha=-2.0, beta=-5
171171

172172
if __name__ == "__main__":
173173
import matplotlib.pyplot as plt
174-
from ngclearn.utils.diffeq.ode_solver import solve_ode
174+
from ngclearn.utils.diffeq.ode_utils import solve_ode
175175

176176

177177
t0 = 0.

0 commit comments

Comments
 (0)