Rerun the eleven docs notebooks left off the documentation site
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- jupyter-notebook, markdown, python
- Ambito
- documentation
Direzione di ricerca
Start with the NOTEBOOKS_LEFT_OUT mapping in policyengine_uk/tests/code_health/test_docs_toc.py, which gives each notebook's reason, then open a small one such as docs/book/programs/gov/dcms/bbc/tv-licence.ipynb. Done means each notebook reruns in place with no error outputs or local paths, its Markdown figures match the parameters for the year it names, and it moves from NOTEBOOKS_LEFT_OUT into myst.yml. Two notebooks need the survey dataset, so they may need a maintainer.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The fix for #2803 keeps eleven notebooks out of myst.yml, so the documentation site has no page for them. NOTEBOOKS_LEFT_OUT in policyengine_uk/tests/code_health/test_docs_toc.py names each with its reason. The current parameters or the law contradict the stored outputs of ten of them, and the eleventh needs survey data to check.
| Notebook | Reason in NOTEBOOKS_LEFT_OUT |
|---|---|
docs/book/programs/gov/dcms/bbc/tv-licence.ipynb |
Its fee table stops at the 2021 fee, and a cell hard-codes that fee as the current value. |
docs/book/programs/gov/dwp/PIP.ipynb |
Its enhanced mobility column shows the daily living standard rate, and its daily living table runs a year behind the parameters. |
docs/book/programs/gov/dwp/universal-credit.ipynb |
Each stored amount sits a year earlier than the parameters give it. |
docs/book/programs/gov/hmrc/child-benefit.ipynb |
Its 2022 table uses 2021 rates, and its code imports IndividualSim, which the package no longer has. |
docs/book/programs/gov/hmrc/fuel-duty.ipynb |
Its stored schedule differs from the parameters from 2027. |
docs/book/programs/gov/hmrc/income-tax.ipynb |
Its worked examples and dividend chart disagree with the model, and its allowance table reads each parameter's oldest value. |
docs/book/programs/gov/hmrc/national-insurance.ipynb |
Its employer rate for 6 April 2022 and its secondary threshold disagree with the parameters. |
docs/book/programs/gov/ofgem/energy-price-guarantee.ipynb |
Its price cap series predates the parameters' current figures. |
docs/book/programs/gov/revenue_scotland/land-and-buildings-transaction-tax.ipynb |
Its second-homes line uses the supplement before 5 December 2024. |
docs/book/programs/gov/wra/land-transaction-tax.ipynb |
Its chart shows main residential bands before 10 October 2022 and higher rates before 11 December 2024, and its code fails on a bracket whose latest threshold is null. |
docs/book/validation/validation.ipynb |
Its chart comes from an old run that needs survey data to check. |
What a rerun must check
For each notebook:
- Fix the code so it runs on the current package.
child-benefit.ipynbimportsIndividualSim,income-tax.ipynbreadsvalues_list[-1](each parameter's oldest value), andland-transaction-tax.ipynbfails on a bracket whose latest threshold is null. - Rerun it in place, for example
uv run --with nbconvert --with ipykernel --with ipywidgets jupyter nbconvert --to notebook --execute --inplace <path>, without changinguv.lockorpyproject.toml. Withoutipywidgets, tqdm writes a stderr warning that holds the localsite-packagespath. - Decode every stored output and confirm that none holds an
erroroutput, a traceback, a stderr stream, a local path or a username. - Compare every figure that a Markdown cell states with the parameters, or a household simulation, for the year the cell names. Hard-coded figures in code cells (the TV licence fee, for example) need the same check.
- Add the notebook to
myst.ymland delete its entry fromNOTEBOOKS_LEFT_OUT.test_docs_toc.pyfails if both name a notebook, or if neither does. validation.ipynband cell 3 ofenergy-price-guarantee.ipynbneed the survey dataset, so only someone with access to it can rerun them.
Other docs fixes
docs/book/usage/scenarios.md: two examples use parameter paths the model lacks,gov.hmrc.income_tax.personal_allowanceandgov.dwp.universal_credit.standard_allowance.single.OVER_25, andScenarioraisesValueErroron each. Point them at parameters the model has.docs/book/programs/gov/dfe/extended-childcare-entitlement.ipynbshows its child-hours example table under "### 2. Income assessment" and its adult income example under "### 3. Work condition verification". Swap the two "Example table" blocks.
- Lingua principale
- Python
- Stelle
- 53
- Fork
- 34
- Merge medio
- 3g 7h
- PR unite (30g)
- 304
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PolicyEngine/policyengine-uk
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PolicyEngine/policyengine-uk#2796 ·
I maintainer di solito rispondono entro 2 giorni
-
Lift the Universal Credit benefit cap for a claimant who receives War Widow's PensionForse già presa @juaristi22 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PolicyEngine/policyengine-uk#2792 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Refuse a withheld year when calibrating reform minimumsForse già presa @MaxGhenis l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PolicyEngine/policyengine-uk#2785 ·
I maintainer di solito rispondono entro 2 giorni
-
Count Maternity Allowance in the benefit capForse già presa @MaxGhenis l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PolicyEngine/policyengine-uk#2784 ·
I maintainer di solito rispondono entro 2 giorni
-
Apply the Tax-Free Childcare income test when no member sets is_parentForse già presa @juaristi22 l’ha presa oggi. Aperta
PolicyEngine/policyengine-uk#2844 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di PolicyEngine/policyengine-uk
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
521xueweihan/HelloGitHub#4237 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jejjohnson/gaussx#721 ·
I maintainer di solito rispondono entro 1 giorno
-
mock-core-configs/etc/mock/rocky-10-riscv64.cfg contains the wrong architecture in config_opts['root']Forse già presa @jasonmontleon l’ha presa 4 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
rpm-software-management/mock#1834 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
elastic/elastic-otel-python#683 ·
I maintainer di solito rispondono entro 1 giorno
-
ci-rerun: collect.py fails a whole pr-babysit cycle on one transient GitHub 5xx and never retriesApertafollow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno