Skip to content

Commit

Permalink
Adding option to override where interim results are saved.
Browse files Browse the repository at this point in the history
  • Loading branch information
morganekmefjord committed Dec 12, 2024
1 parent ad1da3b commit 857acb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ptp/inference/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ def run_inference(job_id):
"""

print("Concatenating results...", flush=True)
result_file_path = f"resultfilepath-{job_id}.csv"

BASE_DIR = os.environ.get("BASE_DIR", "/app/")
os.makedirs(f"{BASE_DIR}/interim", exist_ok=True)
result_file_path = f"{BASE_DIR}/interim/resultfilepath-{job_id}.csv"

try:
# Paths for input and output
Expand Down

0 comments on commit 857acb2

Please sign in to comment.