7b4435c4bb501ae4ebe8cead737fd91e4abe935e,mahotas/morph.py,,get_structuring_elem,#Any#Any#,34
Before Change
elif type(Bc) == int and (len(A.shape), Bc) in translate_sizes:
Bc = translate_sizes[len(A.shape),Bc]
elif type(Bc) != int:
if len(A.shape) != len(Bc.shape):
raise ValueError("morph.get_structuring_elem: Bc does not have the correct number of dimensions.")
Bc = np.asanyarray(Bc, A.dtype)
if not Bc.flags.contiguous:
return Bc.copy()
return Bc
After Change
elif type(Bc) == int and (len(A.shape), Bc) in translate_sizes:
Bc = translate_sizes[len(A.shape),Bc]
elif type(Bc) != int:
if A.ndim != Bc.ndim:
raise ValueError("morph.get_structuring_elem: Bc does not have the correct number of dimensions. [array has {} coordinates; Bc has {}.]".format(A.ndim, Bc.ndim))
Bc = np.asanyarray(Bc, A.dtype)
if not Bc.flags.contiguous:
return Bc.copy()
return Bc
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: luispedro/mahotas
Commit Name: 7b4435c4bb501ae4ebe8cead737fd91e4abe935e
Time: 2013-11-26
Author: luis@luispedro.org
File Name: mahotas/morph.py
Class Name:
Method Name: get_structuring_elem
Project Name: deepgram/kur
Commit Name: b01ea16c4fadeb271c2bde653947d92048f367c8
Time: 2017-03-21
Author: ajsyp@syptech.net
File Name: kur/backend/keras_backend.py
Class Name: KerasBackend
Method Name: _restore_keras
Project Name: dnouri/skorch
Commit Name: 53ef00376510ee9ba4506918db06b25dad4a7ea4
Time: 2017-07-31
Author: benjamin.bossan@ottogroup.com
File Name: inferno/callbacks.py
Class Name: BestLoss
Method Name: initialize
Project Name: dnouri/skorch
Commit Name: a5f83e8f1e29c62070333d6ce48009e2fdb323b9
Time: 2017-07-19
Author: benjamin.bossan@ottogroup.com
File Name: inferno/net.py
Class Name: NeuralNet
Method Name: initialize_callbacks