Skip to content

Commit

Permalink
Allow get_control_t_distns without auth
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed May 9, 2021
1 parent 7821495 commit 2accc80
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dishpylib/pyhelpers/get_control_t_distns.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import boto3
import botocore
import functools
import pandas as pd

Expand All @@ -7,7 +8,13 @@
@functools.lru_cache
def get_control_t_distns( bucket, endeavor, stint ):

s3_handle = boto3.resource('s3')
s3_handle = boto3.resource(
's3',
region_name="us-east-2",
config=botocore.config.Config(
signature_version=botocore.UNSIGNED,
),
)
bucket_handle = s3_handle.Bucket(bucket)

control_competitions, = bucket_handle.objects.filter(
Expand Down

0 comments on commit 2accc80

Please sign in to comment.