50ad5851edd83940e72b8bbd3e8e4a6acbc7b445,mathics/builtin/image.py,DiamondMatrix,apply,#DiamondMatrix#Any#Any#,834
Before Change
class DiamondMatrix(_ImageBuiltin):
def apply(self, r, evaluation):
"DiamondMatrix[r_?RealNumberQ]"
return from_python(skimage.morphology.diamond(r).tolist())
class _MorphologyFilter(_ImageBuiltin):
messages = {
After Change
class DiamondMatrix(_ImageBuiltin):
def apply(self, r, evaluation):
"DiamondMatrix[r_?RealNumberQ]"
py_r = abs(r.round_to_float())
t = int(math.floor(0.5 + py_r))
zero = Integer(0)
one = Integer(1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
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: 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
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