@@ -136,19 +136,6 @@ def _safe_svd(A, **kwargs):
136136 return linalg .svd (A , lapack_driver = "gesvd" , ** kwargs )
137137
138138
139- def _csc_array_cast (x ):
140- from scipy .sparse import csc_array
141-
142- return csc_array (x )
143-
144-
145- # Can be replaced with sparse.eye_array once we depend on SciPy >= 1.12
146- def _eye_array (n , * , format = "csr" ): # noqa: A002
147- from scipy import sparse
148-
149- return sparse .dia_array ((np .ones (n ), 0 ), shape = (n , n )).asformat (format )
150-
151-
152139###############################################################################
153140# NumPy Generator (NumPy 1.17)
154141
@@ -707,7 +694,7 @@ def _close_event(fig):
707694
708695
709696###############################################################################
710- # SciPy 1.14+ minimum_phase half=True option
697+ # TODO VERSION SciPy 1.14+ minimum_phase half=True option
711698
712699
713700def minimum_phase (h , method = "homomorphic" , n_fft = None , * , half = True ):
@@ -778,8 +765,7 @@ def sph_harm_y(n, m, theta, phi, *, diff_n=0):
778765
779766
780767###############################################################################
781- # TODO VERSION: Can be removed once pymatreader >= 1.2.2 is the minimum
782- # supported version.
768+ # TODO VERSION: Can be removed once pymatreader >= 1.2.2 is the min version
783769
784770
785771def _whosmat (fname ):
@@ -898,6 +884,8 @@ def _whosmat_hdf5(fname):
898884# workaround: Numpy won't allow to read from file-like objects with numpy.fromfile,
899885# we try to use numpy.fromfile, if a blob is used we use numpy.frombuffer to read
900886# from the file-like object.
887+
888+
901889def read_from_file_or_buffer (
902890 file : str | bytes | os .PathLike | io .IOBase ,
903891 dtype : numpy .typing .DTypeLike = float ,
0 commit comments