Skip to content

Commit

Permalink
runner fcn
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed May 15, 2024
1 parent 1319af1 commit 50935b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SlideServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 50935b3

Please sign in to comment.