File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -274,13 +274,21 @@ def concatenate_labor_damages(
274274 return concat_ds
275275
276276
277- def calculate_labor_batch_damages (batch , ec , input_path , save_path ):
277+ def calculate_labor_batch_damages (
278+ batch ,
279+ ec ,
280+ input_path ,
281+ save_path ,
282+ variable = "rebased" ,
283+ file_prefix = "uninteracted_main_model" ,
284+ ):
278285 print (f"Processing batch={ batch } damages in { os .getpid ()} " )
279286 concatenate_labor_damages (
280287 input_path = input_path ,
281288 save_path = save_path ,
282289 ec_cls = ec ,
283- variable = "rebased" ,
290+ variable = variable ,
291+ file_prefix = file_prefix ,
284292 val_type = "wage-levels" ,
285293 format_file = "zarr" ,
286294 query = f"exists==True&batch=='batch{ batch } '" ,
@@ -292,6 +300,8 @@ def calculate_labor_damages(
292300 path_econ ,
293301 input_path ,
294302 save_path ,
303+ variable = "rebased" ,
304+ file_prefix = "uninteracted_main_model" ,
295305):
296306 ec = EconVars (path_econ )
297307 # process in 3 rounds to limit memory usage
@@ -301,6 +311,8 @@ def calculate_labor_damages(
301311 input_path = input_path ,
302312 save_path = save_path ,
303313 ec = ec ,
314+ variable = variable ,
315+ file_prefix = file_prefix ,
304316 )
305317 print ("Processing batches:" )
306318 print (list (range (i * 5 , i * 5 + 5 )))
You can’t perform that action at this time.
0 commit comments