Populate the UK prepayment-meter input from LCFS
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- data-engineering
Research direction
Start with packages/microcosm-build/src/microcosm/build/uk_runtime/lcfs_consumption.py, especially the consumption-stage code linked in the issue, and trace how LCFS donor fields are cleaned, imputed, and exported. Find the UK stage tests and add focused coverage for the requested classification and propagation cases. Done means the input is exported, the weighted estimate is reported, and its comparison clearly states benchmark differences.
Written by the indexing model from the issue text.
Description
Summary
PolicyEngine/policyengine-uk#2098 adds the household input uses_energy_prepayment_meter to calculate the Great Britain Energy Price Guarantee prepayment discount from July 2023 through March 2024. Microcosm's current UK LCFS consumption stage does not read a gas or electricity payment-method field and does not include this boolean in UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS. Population simulations therefore default the model input to false and calculate no prepayment discount.
The government reported that the July 2023 change covered around three million prepayment-meter households across Great Britain and reduced a typical annual bill by around £21. Prepayment meter customers to pay less for energy from today
Current implementation: uk_runtime/lcfs_consumption.py
Requested implementation
- Identify the LCFS gas and electricity payment-method fields and document their code values.
- Derive a household-level
uses_energy_prepayment_meterboolean, including an explicit rule for mixed payment methods and missing responses. - Carry or impute the boolean from the LCFS donor into the UK household frame and include it in the exported PolicyEngine UK dataset.
- Add focused UK stage tests for donor cleaning, output propagation, deterministic assignment, and export compatibility.
- Report the weighted number and share of Great Britain households classified as using a prepayment meter.
- Compare that result with an official benchmark, stating differences in reference period, geography, and whether the benchmark counts households, customers, accounts, or meters.
Related issue and repository boundary
PolicyEngine/policyengine-uk-data#539 tracks the same missing input in the UK input pipeline and will remain open. This issue tracks the implementation required in Microcosm's direct LCFS consumption stage and current UK population build. The two implementations should use the same source-field interpretation and classification rules.
Dependency
The model can calculate the discount for an individual household when a caller supplies uses_energy_prepayment_meter. A Microcosm population release must carry this input before the discount has a nonzero aggregate effect in population simulations.
- Dominant language
- Python
- Stars
- 0
- Forks
- 4
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 106
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PolicyEngine/microcosm
-
Update two stale comments about the export-mass reviewed-exclusion registerPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
PolicyEngine/microcosm#1108 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
PolicyEngine/microcosm#475 ·
Maintainers usually reply within 1 day
-
UK: model landlord property income on the taxable (net of expenses) concept, not rent receivedPossibly taken @juaristi22 claimed this 1 day ago. Open
PolicyEngine/microcosm#1106 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
PolicyEngine/microcosm#1095 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
PolicyEngine/microcosm#1094 ·
Maintainers usually reply within 1 day
All issues in PolicyEngine/microcosm
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
FuRongJun-1999/dsh-memory#65 ·
Maintainers usually reply within 1 day
-
ci needs-ac
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Ikalus1988/MisakaNet#2930 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Qiskit/qiskit-aer#2466 ·
-
area/cli
Difficulty 2/5 1-3 hours Newbie friendliness 82/100