Skip to content

Commit

Permalink
Within container path to model_batch_dir tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhmorris committed Dec 19, 2024
1 parent 715b0d1 commit edda29f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pipelines/batch/setup_score_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def main(
forecast_dirs = get_all_forecast_dirs(
score_dir, ["COVID-19", "Influenza"]
)
score_dir_name = Path(score_dir).name

for model_batch_dir in forecast_dirs:
location_names = [
f.name
Expand All @@ -116,7 +118,9 @@ def main(
if f.is_dir() and f.name in loc_abbrs
]
for location in location_names:
model_batch_dir_path = f"output/{score_dir}/{model_batch_dir}"
model_batch_dir_path = (
f"output/{score_dir_name}/{model_batch_dir}"
)
task = get_task_config(
f"{model_batch_dir}-{location}",
base_call=base_call.format(
Expand Down

0 comments on commit edda29f

Please sign in to comment.