Skip to content

Commit

Permalink
Fix API_URL and remove unused endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kirbyju committed Aug 2, 2024
1 parent 87d521d commit 6b4b857
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions platipy/dicom/download/tcia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 6b4b857

Please sign in to comment.