Skip to content

Commit 3c172a3

Browse files
committed
Update publication candidate
1 parent 71468a4 commit 3c172a3

4 files changed

Lines changed: 25 additions & 18 deletions

File tree

changelog.d/populate-spm-energy-subsidy.changed.md renamed to .github/publication_candidates/usdata-gha25970892240-a1/changelog.d/populate-spm-energy-subsidy.changed.md

File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"base_release_version": "1.115.2",
3+
"candidate_scope": "1.115.2-patch",
4+
"release_bump": "patch",
5+
"run_id": "usdata-gha25970892240-a1",
6+
"would_release_as_at_build_time": "1.115.3"
7+
}

.github/publication_scope.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"base_release_version": "1.115.2",
33
"candidate_scope": "1.115.2-patch",
44
"release_bump": "patch",
5-
"run_id": "usdata-gha25968212826-a1",
5+
"run_id": "usdata-gha25970892240-a1",
66
"would_release_as_at_build_time": "1.115.3"
77
}

docs/generated/pipeline_api.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"docstring": "Set 2025 ACA take-up to match APTC enrollment targets.",
44
"id": "aca_2025_override",
55
"kind": "function",
6-
"line": 421,
6+
"line": 403,
77
"metadata": {
88
"api_refs": [
99
"policyengine_us_data.datasets.cps.enhanced_cps.create_aca_2025_takeup_override"
@@ -61,7 +61,7 @@
6161
"docstring": "\"Add auto loan balance, interest and net_worth variable.",
6262
"id": "add_auto_loan",
6363
"kind": "function",
64-
"line": 2792,
64+
"line": 2798,
6565
"metadata": {
6666
"api_refs": [
6767
"policyengine_us_data.datasets.cps.cps.add_auto_loan_interest_and_net_worth"
@@ -88,7 +88,7 @@
8888
"docstring": "Populate household-level geography variables used by PolicyEngine US.\n\nArgs:\n cps: Output CPS H5 group receiving derived household variables.\n household: Raw CPS household table.",
8989
"id": "add_household_variables",
9090
"kind": "function",
91-
"line": 1454,
91+
"line": 1460,
9292
"metadata": {
9393
"api_refs": [
9494
"policyengine_us_data.datasets.cps.cps.add_household_variables"
@@ -115,7 +115,7 @@
115115
"docstring": "Add basic ID and weight variables.\n\nArgs:\n cps (h5py.File): The CPS dataset file.\n person (DataFrame): The person table of the ASEC.\n tax_unit (DataFrame): The tax unit table created from the person table\n of the ASEC.\n family (DataFrame): The family table of the ASEC.\n spm_unit (DataFrame): The SPM unit table created from the person table\n of the ASEC.\n household (DataFrame): The household table of the ASEC.",
116116
"id": "add_id_variables",
117117
"kind": "function",
118-
"line": 933,
118+
"line": 931,
119119
"metadata": {
120120
"api_refs": [
121121
"policyengine_us_data.datasets.cps.cps.add_id_variables"
@@ -142,7 +142,7 @@
142142
"docstring": "Impute ORG-derived wage and union inputs onto CPS persons.",
143143
"id": "add_org_inputs",
144144
"kind": "function",
145-
"line": 2676,
145+
"line": 2682,
146146
"metadata": {
147147
"api_refs": [
148148
"policyengine_us_data.datasets.cps.cps.add_org_labor_market_inputs"
@@ -169,7 +169,7 @@
169169
"docstring": "Add income variables.\n\nArgs:\n cps (h5py.File): The CPS dataset file.\n person (DataFrame): The CPS person table.\n year (int): The CPS year",
170170
"id": "add_personal_income_variables",
171171
"kind": "function",
172-
"line": 1139,
172+
"line": 1137,
173173
"metadata": {
174174
"api_refs": [
175175
"policyengine_us_data.datasets.cps.cps.add_personal_income_variables"
@@ -196,7 +196,7 @@
196196
"docstring": "Add personal demographic variables.\n\nArgs:\n cps (h5py.File): The CPS dataset file.\n person (DataFrame): The CPS person table.",
197197
"id": "add_personal_variables",
198198
"kind": "function",
199-
"line": 995,
199+
"line": 993,
200200
"metadata": {
201201
"api_refs": [
202202
"policyengine_us_data.datasets.cps.cps.add_personal_variables"
@@ -223,7 +223,7 @@
223223
"docstring": "",
224224
"id": "add_previous_year_income",
225225
"kind": "function",
226-
"line": 1496,
226+
"line": 1502,
227227
"metadata": {
228228
"api_refs": [
229229
"policyengine_us_data.datasets.cps.cps.add_previous_year_income"
@@ -277,7 +277,7 @@
277277
"docstring": "",
278278
"id": "add_spm_variables",
279279
"kind": "function",
280-
"line": 1415,
280+
"line": 1423,
281281
"metadata": {
282282
"api_refs": [
283283
"policyengine_us_data.datasets.cps.cps.add_spm_variables"
@@ -304,7 +304,7 @@
304304
"docstring": "Assign SSN card type using PRCITSHP, employment status, and ASEC-UA conditions.\nCodes:\n- 0: \"NONE\" - Likely undocumented immigrants\n- 1: \"CITIZEN\" - US citizens (born or naturalized)\n- 2: \"NON_CITIZEN_VALID_EAD\" - Non-citizens with work/study authorization\n- 3: \"OTHER_NON_CITIZEN\" - Non-citizens with indicators of legal status",
305305
"id": "add_ssn_card_type",
306306
"kind": "function",
307-
"line": 1602,
307+
"line": 1608,
308308
"metadata": {
309309
"api_refs": [
310310
"policyengine_us_data.datasets.cps.cps.add_ssn_card_type"
@@ -331,7 +331,7 @@
331331
"docstring": "",
332332
"id": "add_takeup",
333333
"kind": "function",
334-
"line": 476,
334+
"line": 474,
335335
"metadata": {
336336
"api_refs": [
337337
"policyengine_us_data.datasets.cps.cps.add_takeup"
@@ -358,7 +358,7 @@
358358
"docstring": "",
359359
"id": "add_tips",
360360
"kind": "function",
361-
"line": 2501,
361+
"line": 2507,
362362
"metadata": {
363363
"api_refs": [
364364
"policyengine_us_data.datasets.cps.cps.add_tips"
@@ -810,7 +810,7 @@
810810
"docstring": "Replace clone-half person-level feature variables with donor matches.",
811811
"id": "clone_features",
812812
"kind": "function",
813-
"line": 403,
813+
"line": 404,
814814
"metadata": {
815815
"api_refs": [
816816
"policyengine_us_data.datasets.cps.extended_cps._splice_clone_feature_predictions"
@@ -873,7 +873,7 @@
873873
"docstring": "Assert that final exported variables are leaf inputs.",
874874
"id": "computed_export_contract",
875875
"kind": "function",
876-
"line": 1266,
876+
"line": 1267,
877877
"metadata": {
878878
"api_refs": [
879879
"policyengine_us_data.datasets.cps.extended_cps.ExtendedCPS._assert_no_computed_variables_exported"
@@ -967,7 +967,7 @@
967967
"docstring": "Second-stage QRF: train on CPS, predict for PUF clones.\n\nFor the PUF clone half of the extended CPS we need plausible values\nof CPS-only variables (retirement distributions, transfers, hours,\nSPM components, etc.) that are consistent with the clone's\nPUF-imputed income -- not just naively copied from the CPS donor.\n\nWe train a QRF on CPS person-level data where:\n * predictors = demographics + key income variables\n * outputs = CPS-only variables listed in\n ``CPS_ONLY_IMPUTED_VARIABLES``\n\nFor PUF clone prediction we use the PUF-imputed income values\nfrom the second half of ``data`` (the clone half, which already\nhas PUF-imputed income from stage 1).\n\nUses ``fit_predict()`` with ``max_train_samples`` instead of\nmanual sampling + separate fit/predict.\n\nArgs:\n data: Extended dataset dict after ``puf_clone_dataset()`` --\n already doubled, with PUF-imputed income in the second half.\n time_period: Tax year.\n dataset_path: Path to the CPS h5 file for Microsimulation.\n\nReturns:\n DataFrame with one column per CPS-only variable, containing\n predicted values for the PUF clone half (person-level).",
968968
"id": "cps_only",
969969
"kind": "function",
970-
"line": 442,
970+
"line": 443,
971971
"metadata": {
972972
"api_refs": [
973973
"policyengine_us_data.datasets.cps.extended_cps._impute_cps_only_variables"
@@ -2619,7 +2619,7 @@
26192619
"docstring": "Replace PUF clone half of CPS-only variables with QRF predictions.\n\nAfter ``puf_clone_dataset()`` the CPS-only variables in the second\nhalf are naive copies of the CPS donor values. This function\nreplaces them with the second-stage QRF predictions that are\nconsistent with the clone's PUF-imputed income.\n\nArgs:\n data: Extended dataset dict (already doubled).\n predictions: DataFrame from ``_impute_cps_only_variables()``.\n time_period: Tax year.\n dataset_path: Path to CPS h5 file for entity mapping.\n\nReturns:\n Modified data dict with CPS-only variables spliced in.",
26202620
"id": "qrf_pass2",
26212621
"kind": "function",
2622-
"line": 748,
2622+
"line": 749,
26232623
"metadata": {
26242624
"api_refs": [
26252625
"policyengine_us_data.datasets.cps.extended_cps._splice_cps_only_predictions"
@@ -2735,7 +2735,7 @@
27352735
"docstring": "",
27362736
"id": "reweight",
27372737
"kind": "function",
2738-
"line": 504,
2738+
"line": 486,
27392739
"metadata": {
27402740
"api_refs": [
27412741
"policyengine_us_data.datasets.cps.enhanced_cps.reweight"

0 commit comments

Comments
 (0)