Skip to content

Commit

Permalink
bugfix aws hcp downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
rutgerfick committed Sep 19, 2018
1 parent 4eadf12 commit bdee952
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dmipy/hcp_interface/downloader_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def __init__(self, your_aws_public_key, your_aws_secret_key):
aws_access_key_id=self.public_key,
aws_secret_access_key=self.secret_key,
)
self.s3_bucket = s3.get_all_buckets()[1]

for key in s3.get_all_buckets():
if key.name == 'hcp-openaccess':
self.s3_bucket = key
break

self.hcp_directory = os.path.join(DATA_PATH, 'hcp')
if not os.path.exists(self.hcp_directory):
Expand Down

0 comments on commit bdee952

Please sign in to comment.