Skip to content

DOC: Fix broken NumPy snippets in MATLAB users guide - #319

Merged
mattip merged 1 commit into
numpy:mainfrom
InessaPawson:np-snippets
Nov 29, 2026
Merged

mattip merged 1 commit into
numpy:mainfrom
InessaPawson:np-snippets

Conversation

@InessaPawson

Copy link
Copy Markdown
Member

Follow-up to #314, addressing @rossbar's and @bsipocz's review feedback about the NumPy snippets in the equivalents tables: they should now run after executing the imports shown above the tables (plus import inspect for the type func row).

Fixed the snippets that raised an error and the 4 that ran but did not match the MATLAB column (linalg.lstsq in 2 rows, linalg.qr, and np.sort).

Not changed here, as they need explanatory notes: a.sort(axis=0), np.mgrid (transposed vs meshgrid), and np.fft.fft/ifft . Will address in a follow-up PR.

@mattip
mattip merged commit e5d43e2 into numpy:main Nov 29, 2026
8 checks passed
@mattip

mattip commented Nov 29, 2026

Copy link
Copy Markdown
Member

Thanks

github-actions Bot pushed a commit that referenced this pull request Nov 29, 2026
DOC: Fix broken NumPy snippets in MATLAB users guide e5d43e2
@InessaPawson
InessaPawson deleted the np-snippets branch November 29, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants