Skip to content

Commit 29c6b2a

Browse files
authored
Merge pull request #415 from ClimateImpactLab/labor_inputs
Add arguments to labor input processing
2 parents ea4a856 + 8ba618b commit 29c6b2a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/dscim/preprocessing/input_damages.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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)))

0 commit comments

Comments
 (0)