d750d66fb998a44316000908f213ae73c53de97f,examples/shrec17/dataset.py,CacheNPY,__call__,#CacheNPY#Any#,194
Before Change
except OSError: exists[i] = False
print("transform...", end="\r")
try:
img = self.transform(file_path)
except:
print(file_path)
raise
np.save(npy_path.format(exists.index(False)), img)
return img
After Change
img = np.load(npy_path.format(i))
except (OSError, FileNotFoundError):
img = self.check_trans(file_path)
np.save(npy_path.format(i), img)
output.append(img)
return output
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: jonas-koehler/s2cnn
Commit Name: d750d66fb998a44316000908f213ae73c53de97f
Time: 2018-03-03
Author: geiger.mario@gmail.com
File Name: examples/shrec17/dataset.py
Class Name: CacheNPY
Method Name: __call__
Project Name: vatlab/SoS
Commit Name: 5456821a4abed83c2e7f57c0bdbf1af093cbddb9
Time: 2017-05-11
Author: ben.bog@gmail.com
File Name: sos/hosts.py
Class Name: LocalHost
Method Name: prepare_task
Project Name: vatlab/SoS
Commit Name: dcf574598f2e0ac2ea78de2b50738101f7ec987a
Time: 2017-05-11
Author: ben.bog@gmail.com
File Name: sos/sos_step.py
Class Name: Base_Step_Executor
Method Name: prepare_task