Skip to content

Commit dc6e7b4

Browse files
committed
adjust to the renamed column
1 parent f0f63aa commit dc6e7b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

idc_index/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def get_dicom_series(self, studyInstanceUID=None,outputFormat="dict"):
173173
return response
174174

175175
def download_dicom_series(self, seriesInstanceUID, downloadDir, dry_run=False, quiet=True):
176-
series_url = self.index[self.index['SeriesInstanceUID'] == seriesInstanceUID]['series_aws_location'].iloc[0]
176+
series_url = self.index[self.index['SeriesInstanceUID'] == seriesInstanceUID]['series_aws_url'].iloc[0]
177177
logging.debug('AWS Bucket Location: '+series_url)
178178

179179
cmd = [self.s5cmdPath, '--no-sign-request', '--endpoint-url', 'https://s3.amazonaws.com', 'cp', '--show-progress',
@@ -244,7 +244,7 @@ def download_from_selection(self, downloadDir=None, dry_run=True, collection_id=
244244
manifest_file = os.path.join(downloadDir, 'download_manifest.s5cmd')
245245
for index, row in result_df.iterrows():
246246
with open(manifest_file, 'a') as f:
247-
f.write("cp --show-progress "+row['series_aws_location'] + " "+downloadDir+"\n")
247+
f.write("cp --show-progress "+row['series_aws_url'] + " "+downloadDir+"\n")
248248
self.download_from_manifest(manifest_file, downloadDir)
249249

250250
"""Download the files corresponding to the manifest file from IDC. The manifest file should be a text file with each line containing the s5cmd command to download the file. The URLs in the file must correspond to those in the AWS buckets!

0 commit comments

Comments
 (0)