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
py_r = abs(r.round_to_float())
s = int(math.floor(0.5 + py_r))
m = (Integer(0), Integer(1))
r_sqr = (py_r + 0.5) * (py_r + 0.5)
def rows():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: DiamondMatrix
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