Skip to content

Commit

Permalink
update references so scipy>=1.8 is okay
Browse files Browse the repository at this point in the history
  • Loading branch information
twmacro committed Mar 12, 2022
1 parent f2e0b1a commit dc8091d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyyeti/expmint.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import warnings
import numpy as np
import scipy.sparse.linalg.matfuncs as mf
import scipy.sparse.linalg as spla
import scipy.linalg as la


Expand All @@ -15,6 +15,14 @@
except TypeError:
pass

mf = spla.matfuncs
try:
# scipy version 1.7 or older?
mf._ExpmPadeHelper
except AttributeError:
# scipy version 1.8 or newer
mf = spla._matfuncs


class _ExpmIntPadeHelper(mf._ExpmPadeHelper):
def __init__(self, A, structure=None, use_exact_onenorm=False):
Expand Down

0 comments on commit dc8091d

Please sign in to comment.