From 50935b3cb333f22201c6d06b73886c7b894ec4fb Mon Sep 17 00:00:00 2001 From: Birm Date: Wed, 15 May 2024 17:59:27 -0400 Subject: [PATCH] runner fcn --- SlideServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SlideServer.py b/SlideServer.py index 2ede737..59c4929 100644 --- a/SlideServer.py +++ b/SlideServer.py @@ -807,10 +807,10 @@ def OLDdownloadRawDicom(source_url, study_uid, series_uid, instance_uid, output_ else: print(f"Failed to retrieve DICOM instance. Status code: {response.status_code}") -def doDownloadRawDicom(source_url, study_uid, series_uid, instance_uid, output_fn): +def downloadRawDicom(source_url, study_uid, series_uid, instance_uid, output_fn): asyncio.run(downloadRawDicom(source_url, study_uid, series_uid, instance_uid, output_fn)) -async def downloadRawDicom(source_url, study_uid, series_uid, instance_uid, output_fn): +async def doDownloadRawDicom(source_url, study_uid, series_uid, instance_uid, output_fn): instance_url = source_url + f"/studies/{study_uid}/series/{series_uid}/instances/{instance_uid}" async with aiohttp.ClientSession(trust_env=True) as session: async with session.get(instance_url) as resp: