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 @@ -275,13 +275,21 @@ def concatenate_labor_damages(
275275 return concat_ds
276276
277277
278- def calculate_labor_batch_damages (batch , ec , input_path , save_path ):
278+ def calculate_labor_batch_damages (
279+ batch ,
280+ ec ,
281+ input_path ,
282+ save_path ,
283+ variable = "rebased" ,
284+ file_prefix = "uninteracted_main_model" ,
285+ ):
279286 print (f"Processing batch={ batch } damages in { os .getpid ()} " )
280287 concatenate_labor_damages (
281288 input_path = input_path ,
282289 save_path = save_path ,
283290 ec_cls = ec ,
284- variable = "rebased" ,
291+ variable = variable ,
292+ file_prefix = file_prefix ,
285293 val_type = "wage-levels" ,
286294 format_file = "zarr" ,
287295 query = f"exists==True&batch=='batch{ batch } '" ,
@@ -293,6 +301,8 @@ def calculate_labor_damages(
293301 path_econ ,
294302 input_path ,
295303 save_path ,
304+ variable = "rebased" ,
305+ file_prefix = "uninteracted_main_model" ,
296306):
297307 ec = EconVars (path_econ )
298308 # process in 3 rounds to limit memory usage
@@ -302,6 +312,8 @@ def calculate_labor_damages(
302312 input_path = input_path ,
303313 save_path = save_path ,
304314 ec = ec ,
315+ variable = variable ,
316+ file_prefix = file_prefix ,
305317 )
306318 print ("Processing batches:" )
307319 print (list (range (i * 5 , i * 5 + 5 )))
You can’t perform that action at this time.
0 commit comments