97e028e5febc19142895daa41538f31645afc422,dataset/batch_image.py,ImagesBatch,_dump_image,#ImagesBatch#Any#Any#Any#Any#,305

Before Change


        self
        

        if ix.rfind(".") == -1:
            if fmt == "image":
                raise RuntimeError("Unknown image format")
            return imsave(self._make_path(src, ix, fmt))

After Change


        self
        

        if dst is None:
            raise RuntimeError("You must specify `dst`")
        ix = str(ix) + "." + fmt if fmt is not None else str(ix)
        imsave(os.path.join(dst, ix), self.get(ix, src))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: analysiscenter/batchflow
Commit Name: 97e028e5febc19142895daa41538f31645afc422
Time: 2018-02-12
Author: g.ivanov@analysiscenter.ru
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: _dump_image


Project Name: analysiscenter/batchflow
Commit Name: 6a8153f8a520aaa1546a474cc854989a2f308596
Time: 2018-02-12
Author: g.ivanov@analysiscenter.ru
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: _dump_image


Project Name: prody/ProDy
Commit Name: 9355ea209c2664ee3c2565431f50b960816ea59a
Time: 2019-11-19
Author: shz66@pitt.edu
File Name: prody/proteins/pdbclusters.py
Class Name:
Method Name: listPDBCluster