🌐 [translation-sync] [eig_circulant.md] Update np.random → Generator API - #222
🌐 [translation-sync] [eig_circulant.md] Update np.random → Generator API#222mmcky wants to merge 2 commits into
Conversation
✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Translation Quality ReviewVerdict: PASS | Model: claude-sonnet-5 | Date: 2026-07-31 📝 Translation Quality
Summary: The translation of the 'Associated Permutation Matrix' section is accurate, fluent, and faithfully preserves the mathematical content, code, and formatting of the English source. No syntax errors were found, and terminology is consistent with the glossary and rest of the document. This section does not present any notable issues requiring correction. The 'Associated Permutation Matrix' section is translated accurately and completely, preserving all mathematical notation, code blocks, and equation references without loss of meaning. Full-width Chinese punctuation is consistently used throughout the changed section, complying with the style policy. Technical phrasing such as '每个特征向量也是 Suggestions:
🔍 Diff Quality
Summary: The code cell change replacing np.random.random with the modern Generator-based rng.random API was correctly and identically applied to the target document in the same position and section. This review was generated automatically by action-translation review mode. |
There was a problem hiding this comment.
🟢 Ready to approve
The changes are small, consistent with existing lecture patterns, and limited to a straightforward RNG API update plus translation-sync metadata refresh.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Pull request overview
This automated translation-sync PR updates the eig_circulant lecture’s example code to use NumPy’s Generator API (default_rng) instead of the legacy global np.random API, and refreshes the translation state metadata to match the new upstream source commit.
Changes:
- Updated the random-draw example in
lectures/eig_circulant.mdfromnp.random.randomtorng = np.random.default_rng(); rng.random(...). - Updated
.translate/state/eig_circulant.md.ymlto reflect the new source SHA, sync date, mode, and tool version.
File summaries
| File | Description |
|---|---|
| lectures/eig_circulant.md | Switches a lecture code-cell to the NumPy Generator random API. |
| .translate/state/eig_circulant.md.yml | Updates translation-sync state to the latest upstream commit and tooling. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
Automated Translation Sync
This PR contains automated translations from QuantEcon/lecture-python.myst.
Source PR
#994 - [eig_circulant.md] Update np.random → Generator API
Files Updated
lectures/eig_circulant.md.translate/state/eig_circulant.md.ymlDetails
This PR was created automatically by the translation action.