@@ -24,7 +24,7 @@ idc_client = IDCClient()
2424# Get the list of GCS file URLs in Google bucket from SeriesInstanceUID
2525gcs_file_urls = idc_client.get_series_file_URLs(
2626 seriesInstanceUID = " 1.3.6.1.4.1.14519.5.2.1.131619305319442714547556255525285829796" ,
27- source_bucket_location = " gcp " ,
27+ source_bucket_location = " gcs " ,
2828)
2929
3030# Get the list of AWS file URLs in AWS bucket from SeriesInstanceUID
@@ -57,7 +57,7 @@ gcs_client = storage.Client.create_anonymous_client()
5757# get the list of file URLs in Google bucket from the SeriesInstanceUID
5858file_urls = idc_client.get_series_file_URLs(
5959 seriesInstanceUID = " 1.3.6.1.4.1.14519.5.2.1.131619305319442714547556255525285829796" ,
60- source_bucket_location = " gcp " ,
60+ source_bucket_location = " gcs " ,
6161)
6262
6363# URLs will look like this:
@@ -176,7 +176,7 @@ result = idc_client.sql_query(query)
176176# Get URL corresponding to the base layer instance in the Google Storage bucket
177177base_layer_file_url = idc_client.get_instance_file_URL(
178178 sopInstanceUID = result.iloc[0 ][" SOPInstanceUID" ],
179- source_bucket_location = " gcp "
179+ source_bucket_location = " gcs "
180180)
181181
182182# Create a storage client and use it to access the IDC's public data bucket
@@ -288,7 +288,7 @@ idc_client = IDCClient()
288288# IDC Portal front page
289289file_urls = idc_client.get_series_file_URLs(
290290 seriesInstanceUID = " 1.2.276.0.7230010.3.1.3.313263360.15787.1706310178.804490" ,
291- source_bucket_location = " gcp "
291+ source_bucket_location = " gcs "
292292)
293293
294294(_, _, bucket_name, folder_name, file_name) = file_urls[0 ].split(" /" )
0 commit comments