Skip to content

Port the numpy.md edits the resync regeneration dropped (seed docstring, qe.Timer) - #38

Merged
mmcky merged 2 commits into
mainfrom
fix/port-595-numpy-edits
Aug 19, 2026
Merged

Port the numpy.md edits the resync regeneration dropped (seed docstring, qe.Timer)#38
mmcky merged 2 commits into
mainfrom
fix/port-595-numpy-edits

Conversation

@mmcky

@mmcky mmcky commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Hand-port of the two numpy.md edits from the source cleanup batch, which never arrived here: the batch's original sync PR (#30) was closed unmerged, and the regeneration (#34) silently omitted the file — the per-file drop is documented in the measured ledger in QuantEcon/action-translation#276.

The two edits mirror the source hunks exactly: the DiscreteRV seed docstring is added verbatim in English (this lecture keeps docstrings in English), and the exercise sentence moves from "les fonctions tic/toc" to "le gestionnaire de contexte qe.Timer()" — the minimal substitution inside the reviewed sentence, using the standard French Python-docs term per the fr terminology rule. .translate/state/numpy.md.yml advances source-sha to the batch commit (d35eb831, verified today as the source's last-touch commit for this file), so translate status stops flagging the lecture as pending; model/mode/tool-version are left as the seed translation's provenance.

Ported by hand rather than regenerated deliberately: numpy.md is one of the two natively-reviewed French lectures (#24, Emile), and a whole-file resync would discard that review.

🤖 Generated with Claude Code

… dropped

The batch's original sync PR here (#30) was closed unmerged and its regeneration (#34) silently omitted numpy.md, so the two #595 edits never arrived: the DiscreteRV seed docstring (kept in English verbatim, as this lecture's docstrings are) and the tic/toc sentence, now le gestionnaire de contexte qe.Timer(). Hand-ported rather than regenerated because numpy.md carries Emile's native review (#24) that a whole-file resync would discard. State advances to the batch commit d35eb831.

Measurement and ledger: QuantEcon/action-translation#276.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

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 PR hand-ports two previously dropped edits into the French numpy.md lecture to match the upstream cleanup batch, while preserving the native French review of the file and updating translation sync state.

Changes:

  • Updates DiscreteRV.__init__ docstring to document the seed argument (English docstring kept, per project convention).
  • Updates the exercise text to reference the qe.Timer() context manager (matching the code examples that use with qe.Timer(...)).
  • Advances .translate/state/numpy.md.yml to the upstream source-sha and updates the sync timestamp so translation status no longer flags the file as pending.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lectures/numpy.md Ports upstream docstring + exercise wording change (tic/toc → qe.Timer())
.translate/state/numpy.md.yml Updates source-sha and synced-at to reflect the upstream batch commit

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lectures/numpy.md
**Partie 2** : Passez à la reproduction du résultat de l'opération de broadcasting suivante. Parallèlement, comparez les vitesses du broadcasting et de la boucle `for` que vous implémentez.

Pour cette partie de l'exercice, vous pouvez utiliser les fonctions `tic`/`toc` de la bibliothèque `quantecon` pour chronométrer l'exécution.
Pour cette partie de l'exercice, vous pouvez utiliser le gestionnaire de contexte `qe.Timer()` de la bibliothèque `quantecon` pour chronométrer l'exécution.
@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-38--verdant-toffee-3261a8.netlify.app

Commit: 50b0ef2

📚 Changed Lectures


Build Info

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