Repository navigation
Description
Translation sync failure
Source PR: #1151
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 1440 has {code-cell}, output line 1276 has {note}
- directive [lecture_comparison] [re_with_feedback] Strange-looking prints of latex equations generated by code #38 name changed: source line 1866 has {code-cell}, output line 1657 has {exercise}
- directive [lecture_comparison][FiniteMarkovChains]equation reference numbering issue #39 name changed: source line 1891 has {exercise}, output line 1675 has {solution-start}
- directive [lecture_comparison] code-block output issue #40 name changed: source line 1909 has {solution-start}, output line 1736 has {solution-end}
- directive update latest sources (9293c8a) using tomyst (b06cacb) #41 name changed: source line 1969 has {solution-end}, output line 1739 has {exercise}
- directive [UPGRADE] upgrade to anaconda=2020.11 #42 name changed: source line 1972 has {exercise}, output line 1750 has {solution-start}
- directive [download notebooks] Updates to support Download Notebooks #43 name changed: source line 1983 has {solution-start}, output line 1782 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 PRs 🌐 [translation-sync] [stats_info] Correct the mathematics and add exercises across the Statistics and Information lectures lecture-python.zh-cn#310, 🌐 [translation-sync] Raise the build stack to the shared baseline, pin jax 0.12.1, drop --upgrade from install lines lecture-python.zh-cn#328 and 🌐 [translation-sync] [approximation_errors, specification_tests, turbulence_inference, blackwell_kihlstrom] Add three lectures applying information projections lecture-python.zh-cn#329 carry, and they are still open in the edition. Merge them, 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, 🌐 [translation-sync] Raise the build stack to the shared baseline, pin jax 0.12.1, drop --upgrade from install lines lecture-python.zh-cn#328 and 🌐 [translation-sync] [approximation_errors, specification_tests, turbulence_inference, blackwell_kihlstrom] Add three lectures applying information projections lecture-python.zh-cn#329 in the edition first; they carry 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 #1151 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 ffd240b90267a910d8406605cb287582c8632ebe..origin/main -- <path>
must print 0. A structural-parity failure repeats exactly on a resync, so fix its cause first.
Activity