1d1c2b76dcaa01fe84735868b93fb27dc5594946,core/eolearn/core/eodata.py,EOPatchIO,save,#EOPatchIO#Any#Any#Any#,1124
Before Change
gz_extension = ".gz" if compress_level else ""
path = self.path + file_format.extension() + gz_extension
if not self.filesystem.exists(dirname):
self.filesystem.makedirs(dirname)
with self.filesystem.openbin(path, "w") as file_handle:
if compress_level == 0:
self._write_to_file(data, file_handle, file_format)
return
After Change
path = self.path + file_format.extension() + gz_extension
if isinstance(self.filesystem, fs.osfs.OSFS):
with TempFS() as tempfs:
self._save(tempfs, data, "tmp_feature", file_format, compress_level)
fs.move.move_file(tempfs, "tmp_feature", self.filesystem, path)
return
self._save(self.filesystem, data, path, file_format, compress_level)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: sentinel-hub/eo-learn
Commit Name: 1d1c2b76dcaa01fe84735868b93fb27dc5594946
Time: 2019-12-24
Author: jovan.visnjic@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatchIO
Method Name: save
Project Name: YerevaNN/mimic3-benchmarks
Commit Name: 5d353701dd56a1fc8abc15e4082e33b7bed2a241
Time: 2017-08-09
Author: harhro@gmail.com
File Name: mimic3models/split_train_val.py
Class Name:
Method Name:
Project Name: YerevaNN/mimic3-benchmarks
Commit Name: 7567cc646d258e40dde9790a28a9b264ccd494fb
Time: 2017-08-27
Author: harhro@gmail.com
File Name: mimic3models/split_train_val.py
Class Name:
Method Name: