Skip to content

Commit aed99c7

Browse files
committed
Revert gcp -> gcs
1 parent b1e335f commit aed99c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

data/downloading-data/direct-loading.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ idc_client = IDCClient()
2424
# Get the list of GCS file URLs in Google bucket from SeriesInstanceUID
2525
gcs_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
5858
file_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
177177
base_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
289289
file_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

Comments
 (0)