Skip to content

Commit

Permalink
MAINT: Replace use of deprecated np.row_stack()
Browse files Browse the repository at this point in the history
  • Loading branch information
WarrenWeckesser committed May 22, 2024
1 parent 9f9a9a4 commit 8c0e204
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/odeintw_demo_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def bjac_cols(y, t, c):


def bjac_rows(y, t, c):
return np.row_stack((np.r_[0, np.diag(c, 1)], np.diag(c)))
return np.vstack((np.r_[0, np.diag(c, 1)], np.diag(c)))


c = np.array([[-20+1j, 5-1j, 0, 0],
Expand Down
2 changes: 1 addition & 1 deletion odeintw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
from ._odeintw import odeintw


__version__ = "1.0.1.dev0"
__version__ = "1.0.1.dev1"
2 changes: 1 addition & 1 deletion odeintw/tests/test_odeintw.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def system3_bjac_cols(y, t, c):


def system3_bjac_rows(y, t, c):
return np.row_stack((np.r_[0, np.diag(c, 1)], np.diag(c)))
return np.vstack((np.r_[0, np.diag(c, 1)], np.diag(c)))


def test_system3():
Expand Down

0 comments on commit 8c0e204

Please sign in to comment.