Repository navigation
Description
Translation sync failure
Source PR: #1135
Target repo: QuantEcon/lecture-python.zh-cn
Target language: zh-cn
Errors
- Error processing lectures/likelihood_ratio_process.md: Error: structural parity check failed for lectures/likelihood_ratio_process.md:
- directive count differs: source has 54, output has 43 — a wholesale mismatch usually means the document was re-fenced or truncated
- directive Update lecture-python sources with latest updates #32 name changed: source line 1438 has {code-cell}, output line 1273 has {note}
- directive [lecture_comparison] [re_with_feedback] Strange-looking prints of latex equations generated by code #38 name changed: source line 1864 has {code-cell}, output line 1654 has {exercise}
- directive [lecture_comparison][FiniteMarkovChains]equation reference numbering issue #39 name changed: source line 1889 has {exercise}, output line 1672 has {solution-start}
- directive [lecture_comparison] code-block output issue #40 name changed: source line 1907 has {solution-start}, output line 1733 has {solution-end}
- directive update latest sources (9293c8a) using tomyst (b06cacb) #41 name changed: source line 1967 has {solution-end}, output line 1736 has {exercise}
- directive [UPGRADE] upgrade to anaconda=2020.11 #42 name changed: source line 1970 has {exercise}, output line 1747 has {solution-start}
- directive [download notebooks] Updates to support Download Notebooks #43 name changed: source line 1981 has {solution-start}, output line 1779 has {solution-end}
- target anchors diverge — missing from output: (nature_likeli_f)=, (lrp_model_selection)=, (lrp_chernoff)=
- Translation behind: lectures/likelihood_ratio_process.md: zh-cn's translation of it is at source
07975d5. This PR's change assumes the English that translation PR 🌐 [translation-sync] [stats_info] Correct the mathematics and add exercises across the Statistics and Information lectures lecture-python.zh-cn#310 carries, and it is still open in the edition. Merge it, then carry this change.
Recovery
Recover a lecture from a checkout of the source's default branch, not by re-running this sync:
lectures/likelihood_ratio_process.md: merge 🌐 [translation-sync] [stats_info] Correct the mathematics and add exercises across the Statistics and Information lectures lecture-python.zh-cn#310 in the edition first; it carries the English this PR's change assumes. Then carry this PR's change into the lecture:translate forward -f likelihood_ratio_process.md, or\translate-resyncon this PR under the condition below.
Any other lecture named above:
- one the edition has:
translate forward -f <file>; - one the edition does not have yet:
translate init -f <file>.
<file> is the lecture's path inside the docs folder. translate forward regenerates the whole lecture, so do not run it on a lecture that has been natively reviewed: carry the change into that one by hand. translate init -f overwrites a translation without asking, so use it only for a lecture the edition does not have.
\translate-resync on #1135 re-runs this sync from the PR's merge-time snapshot, for every file the PR changed, not only those named above. Use it only when none of those files has changed on the source's default branch since the PR merged; otherwise it reverts the later changes (QuantEcon/action-translation#276). For each file the PR changed,
git rev-list --count 6071051dfe42e75bbecb0682bfc65daf4dc8f60d..origin/main -- <path>
must print 0. A structural-parity failure repeats exactly on a resync, so fix its cause first.
Activity