@@ -83,7 +83,6 @@ def compute_clone_diagnostics_summary(
8383 person_is_puf_clone ,
8484 person_weight ,
8585 person_in_poverty ,
86- person_reported_in_poverty ,
8786 spm_unit_is_puf_clone ,
8887 spm_unit_weight ,
8988 spm_unit_capped_work_childcare_expenses ,
@@ -96,7 +95,6 @@ def compute_clone_diagnostics_summary(
9695 person_is_puf_clone = np .asarray (person_is_puf_clone , dtype = bool )
9796 person_weight = np .asarray (person_weight , dtype = np .float64 )
9897 person_in_poverty = np .asarray (person_in_poverty , dtype = bool )
99- person_reported_in_poverty = np .asarray (person_reported_in_poverty , dtype = bool )
10098 spm_unit_is_puf_clone = np .asarray (spm_unit_is_puf_clone , dtype = bool )
10199 spm_unit_weight = np .asarray (spm_unit_weight , dtype = np .float64 )
102100 capped_childcare = np .asarray (
@@ -108,7 +106,6 @@ def compute_clone_diagnostics_summary(
108106 spm_unit_taxes = np .asarray (spm_unit_taxes , dtype = np .float64 )
109107 spm_unit_market_income = np .asarray (spm_unit_market_income , dtype = np .float64 )
110108
111- poor_modeled_only = person_in_poverty & ~ person_reported_in_poverty
112109 clone_spm_weight = spm_unit_weight [spm_unit_is_puf_clone ].sum ()
113110
114111 return {
@@ -118,18 +115,10 @@ def compute_clone_diagnostics_summary(
118115 "clone_person_weight_share_pct" : _weighted_share (
119116 person_is_puf_clone , person_weight
120117 ),
121- "clone_poor_modeled_only_person_weight_share_pct " : _weighted_share (
122- person_is_puf_clone & poor_modeled_only ,
118+ "clone_poor_person_weight_share_pct " : _weighted_share (
119+ person_is_puf_clone & person_in_poverty ,
123120 person_weight ,
124121 ),
125- "poor_modeled_only_within_clone_person_weight_share_pct" : (
126- 0.0
127- if person_weight [person_is_puf_clone ].sum () <= 0
128- else _weighted_share (
129- poor_modeled_only [person_is_puf_clone ],
130- person_weight [person_is_puf_clone ],
131- )
132- ),
133122 "clone_childcare_exceeds_pre_subsidy_share_pct" : (
134123 0.0
135124 if clone_spm_weight <= 0
@@ -269,12 +258,6 @@ def build_clone_diagnostics_for_simulation(
269258 weight inputs back from disk.
270259 """
271260
272- person_reported_in_poverty = _to_numpy (
273- sim .calculate ("spm_unit_net_income_reported" , period = period , map_to = "person" )
274- ) < _to_numpy (
275- sim .calculate ("spm_unit_spm_threshold" , period = period , map_to = "person" )
276- )
277-
278261 return compute_clone_diagnostics_summary (
279262 household_is_puf_clone = _load_saved_period_array (
280263 dataset_path , "household_is_puf_clone" , period
@@ -287,7 +270,6 @@ def build_clone_diagnostics_for_simulation(
287270 sim .calculate ("household_weight" , period = period , map_to = "person" )
288271 ),
289272 person_in_poverty = _to_numpy (sim .calculate ("person_in_poverty" , period = period )),
290- person_reported_in_poverty = person_reported_in_poverty ,
291273 spm_unit_is_puf_clone = _load_saved_period_array (
292274 dataset_path , "spm_unit_is_puf_clone" , period
293275 ),
0 commit comments