From 578110e06b466eb4f8f8fd5b20f4047178379325 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas.kluyver@xfel.eu> Date: Wed, 11 May 2022 17:03:33 +0200 Subject: [PATCH] Apply 2 suggestion(s) to 2 file(s) --- tests/test_webservice.py | 2 +- webservice/webservice.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_webservice.py b/tests/test_webservice.py index 853070535..4dffa46d2 100644 --- a/tests/test_webservice.py +++ b/tests/test_webservice.py @@ -111,7 +111,7 @@ async def test_wait_on_transfer( pnfs_dir = pnfs_prefix / f"raw/{inst}/{cycle}/p{prop_no}/r{run_no}" pnfs_dir.mkdir(parents=True) - run_path = tmp_root / f"gpfs/exfel/exp/{inst}/{cycle}/p{prop_no}/raw/r{run_no}" + run_path = tmp_root / f"gpfs/exfel/exp/{inst}/{cycle}/p{prop_no:06d}/raw/r{run_no:04d}" run_path.parent.mkdir(parents=True) if run_links_to == "XFEL_GPFS_OFFLINE_RAW_CC": run_path.symlink_to(gpfs_dir) diff --git a/webservice/webservice.py b/webservice/webservice.py index 3746e1e22..ffcdb21a9 100644 --- a/webservice/webservice.py +++ b/webservice/webservice.py @@ -636,7 +636,7 @@ async def wait_transfers( coros = [] for run in runs: - run_dir = (in_folder / f"{run:06d}") + run_dir = (in_folder / f"{run:04d}") coros.append(wait_on_transfer(mdc, run, proposal, run_dir)) try: -- GitLab