Skip to content

🌐 [translation-sync] [os_time_iter.md] Update np.random → Generator API - #220

Open
mmcky wants to merge 2 commits into
mainfrom
translation-sync-2026-07-31T23-20-50-pr-998
Open

🌐 [translation-sync] [os_time_iter.md] Update np.random → Generator API#220
mmcky wants to merge 2 commits into
mainfrom
translation-sync-2026-07-31T23-20-50-pr-998

Conversation

@mmcky

@mmcky mmcky commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

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.yml

Details

  • Source Language: en
  • Target Language: zh-cn
  • Model: claude-sonnet-5

This PR was created automatically by the translation action.

@mmcky
mmcky requested review from Copilot July 31, 2026 23:20
@mmcky mmcky added action-translation PRs created by QuantEcon/action-translation automated Automated sync PR opened by action-translation labels Jul 31, 2026
@netlify

netlify Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit bfd2394
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a6d2dd78eef7d0008c2f3fc
😎 Deploy Preview https://deploy-preview-220--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

✅ Translation Quality Review

Verdict: PASS | Model: claude-sonnet-5 | Date: 2026-07-31
Routing: auto-merge — no gating findings; floors met


📝 Translation Quality

Criterion Score
Accuracy 10/10
Fluency 9/10
Terminology 9/10
Formatting 10/10
Overall 9.5/10

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

Check Status
Scope Correct
Position Correct
Structure Preserved
Heading-map Correct
Overall 10/10

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:

  • An extra blank line between 'Examples are given below.' and '## Implementation' was removed in the target's After version, but this was not a change present in the source document (source kept two blank lines). This is a minor unintended structural deviation but does not affect rendering significantly.

This review was generated automatically by action-translation review mode.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.randn with np.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.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request August 1, 2026 00:03 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action-translation PRs created by QuantEcon/action-translation automated Automated sync PR opened by action-translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants