Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT/DOC: Doctests fix scpdt 1.6 #22107

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scipy/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,14 @@ def warnings_errors_and_rng(test=None):
'scipy.optimize.show_options', # does not have much to doctest
'scipy.signal.normalize', # manipulates warnings (XXX temp skip)
'scipy.sparse.linalg.norm', # XXX temp skip
# these below test things which inherit from np.ndarray
# cross-ref https://github.com/numpy/numpy/issues/28019
'scipy.io.matlab.MatlabObject.strides',
'scipy.io.matlab.MatlabObject.dtype',
'scipy.io.matlab.MatlabOpaque.dtype',
'scipy.io.matlab.MatlabOpaque.strides',
'scipy.io.matlab.MatlabFunction.strides',
'scipy.io.matlab.MatlabFunction.dtype'
])

# these are affected by NumPy 2.0 scalar repr: rely on string comparison
Expand Down
10 changes: 2 additions & 8 deletions scipy/sparse/linalg/_dsolve/_add_newdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,12 @@
"""
Permutation Pc represented as an array of indices.

The column permutation matrix can be reconstructed via:

>>> Pc = np.zeros((n, n))
>>> Pc[np.arange(n), perm_c] = 1
See the `SuperLU` docstring for details.
"""))

add_newdoc('scipy.sparse.linalg._dsolve._superlu', 'SuperLU', ('perm_r',
"""
Permutation Pr represented as an array of indices.

The row permutation matrix can be reconstructed via:

>>> Pr = np.zeros((n, n))
>>> Pr[perm_r, np.arange(n)] = 1
See the `SuperLU` docstring for details.
"""))
Loading