From 6b4b857f21ccdde03fb4576e4c9a31efb335a75a Mon Sep 17 00:00:00 2001 From: Justin Kirby <2379527+kirbyju@users.noreply.github.com> Date: Fri, 2 Aug 2024 10:27:50 -0400 Subject: [PATCH] Fix API_URL and remove unused endpoints --- platipy/dicom/download/tcia.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/platipy/dicom/download/tcia.py b/platipy/dicom/download/tcia.py index 8eed4285..43b41be7 100644 --- a/platipy/dicom/download/tcia.py +++ b/platipy/dicom/download/tcia.py @@ -27,16 +27,13 @@ process_dicom_directory, ) -API_URL = "https://services.cancerimagingarchive.net/services/v4/TCIA" - -collection_endpoint = f"{API_URL}/query/getCollectionValues" -modalities_endpoint = f"{API_URL}/query/getModalityValues" -patient_endpoint = f"{API_URL}/query/getPatient" -series_endpoint = f"{API_URL}/query/getSeries" -series_size_endpoint = f"{API_URL}/query/getSeriesSize" -download_series_endpoint = f"{API_URL}/query/getImage" -sop_uids_endpoint = f"{API_URL}/query/getSOPInstanceUIDs" -download_image_endpoint = f"{API_URL}/query/getSingleImage" +API_URL = "https://services.cancerimagingarchive.net/nbia-api/services/v1" + +collection_endpoint = f"{API_URL}/getCollectionValues" +modalities_endpoint = f"{API_URL}/getModalityValues" +patient_endpoint = f"{API_URL}/getPatient" +series_endpoint = f"{API_URL}/getSeries" +download_series_endpoint = f"{API_URL}/getImage" def get_collections():