c551be5503cf00e5c3b362497ade867fd85dfe59,deepchem/data/tests/test_image_loader.py,TestImageLoader,setUp,#TestImageLoader#,20
Before Change
face_path = os.path.join(self.image_dir, "face.png")
misc.imsave(face_path, self.face)
face_copy_path = os.path.join(self.image_dir, "face_copy.png")
misc.imsave(face_copy_path, self.face)
def test_png_simple_load(self):
loader = dc.data.ImageLoader()
dataset = loader.featurize(self.face_path)
After Change
// Create image directory
self.image_dir = tempfile.mkdtemp()
face_path = os.path.join(self.image_dir, "face.png")
Image.fromarray(self.face).save(face_path)
face_copy_path = os.path.join(self.image_dir, "face_copy.png")
Image.fromarray(self.face).save(face_copy_path)
def test_png_simple_load(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepchem/deepchem
Commit Name: c551be5503cf00e5c3b362497ade867fd85dfe59
Time: 2019-08-18
Author: peastman@stanford.edu
File Name: deepchem/data/tests/test_image_loader.py
Class Name: TestImageLoader
Method Name: setUp
Project Name: HyperGAN/HyperGAN
Commit Name: fb6cfa1cdcb7aecf89dcc9f13c5e88c82d7beb1d
Time: 2017-05-26
Author: emikulic@gmail.com
File Name: hypergan/samplers/common.py
Class Name:
Method Name: plot
Project Name: HyperGAN/HyperGAN
Commit Name: ab28fee3d799fee588692c3d5ef3f4c8f868e63b
Time: 2017-05-26
Author: emikulic@gmail.com
File Name: hypergan/samplers/common.py
Class Name:
Method Name: plot