@@ -27,7 +27,9 @@ class ClaimsHospIndicatorUpdater:
2727 # pylint: disable=too-many-instance-attributes, too-many-arguments
2828 # all variables are used
2929
30- def __init__ (self , startdate , enddate , dropdate , geo , parallel , weekday , write_se , signal_name , logger ):
30+ def __init__ (
31+ self , startdate , enddate , dropdate , geo , parallel , weekday , write_se , signal_name , numerator_name , logger
32+ ):
3133 """
3234 Initialize updater for the claims-based hospitalization indicator.
3335
@@ -45,8 +47,14 @@ def __init__(self, startdate, enddate, dropdate, geo, parallel, weekday, write_s
4547 self .startdate , self .enddate , self .dropdate = [pd .to_datetime (t ) for t in
4648 (startdate , enddate , dropdate )]
4749
48- self .geo , self .parallel , self .weekday , self .write_se , self .signal_name = \
49- geo .lower (), parallel , weekday , write_se , signal_name
50+ self .geo , self .parallel , self .weekday , self .write_se , self .signal_name , self .numerator_name = (
51+ geo .lower (),
52+ parallel ,
53+ weekday ,
54+ write_se ,
55+ signal_name ,
56+ numerator_name ,
57+ )
5058
5159 # init in shift_dates, declared here for pylint
5260 self .burnindate , self .fit_dates , self .burn_in_dates , self .output_dates = \
@@ -147,7 +155,7 @@ def update_indicator(self, input_filepath, outpath):
147155
148156 # load data
149157 base_geo = Config .HRR_COL if self .geo == Config .HRR_COL else Config .FIPS_COL
150- data = load_data (input_filepath , self .dropdate , base_geo )
158+ data = load_data (input_filepath , self .dropdate , base_geo , self . numerator_name )
151159 data_frame = self .geo_reindex (data )
152160
153161 # handle if we need to adjust by weekday
0 commit comments