63eefcc59a3d9ed5347695869833e48a91404108,core/eolearn/core/eodata.py,EOPatch,save_aws,#EOPatch#Any#Any#Any#Any#Any#Any#,564

Before Change


                if ftype.is_meta():
                    pickle.dump(data, memfile)
                else:
                    np.save(memfile, data)

            bytes_to_upload = memfile.getvalue()
            s3client.put_object(Bucket=bucket_name, Key=path, Body=bytes_to_upload)

After Change


        :type s3client: botocore.client.S3
        

        features = list(FeatureParser(features)(self))

        ftrs = {(ftype, fname) for ftype, fname in features if not ftype.is_meta()}
        meta = {(ftype, ...) for ftype, _ in features if ftype.is_meta()}
        features = list(ftrs | meta)

        file_saver_list = self._get_save_file_list("", "", features, file_format, compress_level)
        paths = [saver.get_file_path(patch_location) for saver in file_saver_list]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: sentinel-hub/eo-learn
Commit Name: 63eefcc59a3d9ed5347695869833e48a91404108
Time: 2019-12-02
Author: matic.lubej@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: save_aws


Project Name: nipy/dipy
Commit Name: 156f9955319ed9383615a7f84e077f10da3bc11a
Time: 2019-07-26
Author: francois.m.rheault@usherbrooke.ca
File Name: dipy/workflows/tracking.py
Class Name: PFTrackingPAMFlow
Method Name: run


Project Name: nipy/dipy
Commit Name: 156f9955319ed9383615a7f84e077f10da3bc11a
Time: 2019-07-26
Author: francois.m.rheault@usherbrooke.ca
File Name: dipy/workflows/tracking.py
Class Name: LocalFiberTrackingPAMFlow
Method Name: _core_run