d3baf96418c790cad57c007cf43224866844ae99,core/eolearn/core/eodata.py,EOPatch,load_aws,#Any#Any#Any#Any#,728
Before Change
for feature, path in load_content:
stream = s3client.get_object(Bucket=bucket_name, Key=path)["Body"].read()
eopatch[feature] = pickle.loads(stream)
return eopatch
@staticmethod
After Change
stream = s3client.get_object(Bucket=bucket_name, Key=path)["Body"].read()
if is_compressed:
with gzip.open(BytesIO(stream), "rb") as gzip_fp:
if is_pickle:
data = pickle.load(gzip_fp)
else:
data = np.load(gzip_fp)
else:
if is_pickle:
data = pickle.load(BytesIO(stream))
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: sentinel-hub/eo-learn
Commit Name: d3baf96418c790cad57c007cf43224866844ae99
Time: 2019-11-29
Author: matic.lubej@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: load_aws
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 073e1b2326fd17b6b64db9bd06dc789c44373482
Time: 2018-09-08
Author: jan@motl.us
File Name: examples/benchmarking_large/arff_loader.py
Class Name:
Method Name: load
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: f1c220bd87fb50668974f60b1309fc4a5814ebe6
Time: 2018-10-08
Author: jan@motl.us
File Name: examples/benchmarking_large/arff_loader.py
Class Name:
Method Name: load