🌐 [translation-sync] [os_time_iter.md] Update np.random → Generator API - #220
🌐 [translation-sync] [os_time_iter.md] Update np.random → Generator API#220mmcky 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 Implementation section is translated accurately, fluently, and with consistent terminology. Code blocks, math, and MyST directives are preserved correctly with no syntax errors. No notable issues found in the changed section. Implementation section translation is accurate and preserves all code, math, and technical meaning Consistent terminology usage matching the rest of the document (e.g., 策略函数, 解包, 求根) Proper full-width punctuation and spacing conventions followed throughout the changed section 🔍 Diff Quality
Summary: The translation sync correctly applied the RNG modernization change (np.random.seed/randn → default_rng/standard_normal) in the same file, same location, and preserved headings and metadata, with only a trivial extraneous blank-line removal elsewhere. Issues:
This review was generated automatically by action-translation review mode. |
There was a problem hiding this comment.
Pull request overview
This automated translation-sync PR updates the Chinese lecture content for os_time_iter.md to reflect the upstream change from legacy np.random seeding/state to NumPy’s Generator API, and refreshes the translation state metadata accordingly.
Changes:
- Replaced
np.random.seed+np.random.randnwithnp.random.default_rng(seed)+rng.standard_normal(...)in the lecture’s model construction example. - Cleaned up minor markdown formatting (removed an extraneous blank line; normalized the
{solution-end}fence closing). - Updated translation sync state metadata (
source-sha,synced-at, model, mode, tool-version).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| lectures/os_time_iter.md | Updates the example to use NumPy Generator RNG API and adjusts minor markdown formatting. |
| .translate/state/os_time_iter.md.yml | Updates translation sync metadata to match the upstream source PR/commit and tooling. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Automated Translation Sync
This PR contains automated translations from QuantEcon/lecture-python.myst.
Source PR
#998 - [os_time_iter.md] Update np.random → Generator API
Files Updated
lectures/os_time_iter.md.translate/state/os_time_iter.md.ymlDetails
This PR was created automatically by the translation action.