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

Before Change


                    else:
                        np.save(bytes_fp, data)
            else:
                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)

    def _get_save_file_list(self, path, tmp_path, features, file_format, compress_level):

After Change


        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: pgmpy/pgmpy
Commit Name: 7281b68353fa8f9263e071716ac5081df5168f59
Time: 2015-02-01
Author: ankurankan@gmail.com
File Name: pgmpy/inference/ExactInference.py
Class Name: VariableElimination
Method Name: _variable_elimination


Project Name: AlexEMG/DeepLabCut
Commit Name: 0ef2bfb1adda578c45e9c56412f86c02b950c0a3
Time: 2020-06-18
Author: saveliy.m.yusufov@gmail.com
File Name: deeplabcut/utils/make_labeled_video.py
Class Name:
Method Name: CreateVideoSlow