50ad5851edd83940e72b8bbd3e8e4a6acbc7b445,mathics/builtin/image.py,DiskMatrix,apply,#DiskMatrix#Any#Any#,828

Before Change


class DiskMatrix(_ImageBuiltin):
    def apply(self, r, evaluation):
        "DiskMatrix[r_?RealNumberQ]"
        return from_python(skimage.morphology.disk(r).tolist())


class DiamondMatrix(_ImageBuiltin):
    def apply(self, r, evaluation):

After Change


            for y in range(-s, s + 1):
                yield [m[int((x) * (x) + (y) * (y) <= r_sqr)] for x in range(-s, s + 1)]

        return _matrix(rows())


class DiamondMatrix(_ImageBuiltin):
    def apply(self, r, evaluation):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: mathics/Mathics
Commit Name: 50ad5851edd83940e72b8bbd3e8e4a6acbc7b445
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: DiskMatrix
Method Name: apply


Project Name: mathics/Mathics
Commit Name: 50ad5851edd83940e72b8bbd3e8e4a6acbc7b445
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: BoxMatrix
Method Name: apply


Project Name: mathics/Mathics
Commit Name: 50ad5851edd83940e72b8bbd3e8e4a6acbc7b445
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: DiamondMatrix
Method Name: apply