5c22e4da7cc75f8f3ddea0c55d63a8f81e7d3613,lazyflow/stype.py,ArrayLike,setupMetaForValue,#ArrayLike#Any#,122
Before Change
def setupMetaForValue(self, value):
if hasattr(value,"__getitem__") and hasattr(value,"shape") and hasattr(value,"dtype") :
self.slot.meta.shape = value.shape
self.slot.meta.dtype = value.dtype
if hasattr(value,"axistags"):
After Change
self.slot.meta.axistags = value.axistags
else:
self.slot.meta.shape = (1,)
if isinstance(value, int) or \
isinstance(value, float) or \
isinstance(value, numpy.floating) or \
isinstance(value, numpy.integer) or \
isinstance(value, numpy.bool_):
self.slot.meta.dtype = type(value)
else:
self.slot.meta.dtype = object
def isConfigured(self):
meta = self.slot.meta
if meta.shape is not None and meta.dtype is not None:
return True
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: ilastik/ilastik
Commit Name: 5c22e4da7cc75f8f3ddea0c55d63a8f81e7d3613
Time: 2013-06-24
Author: bergs@janelia.hhmi.org
File Name: lazyflow/stype.py
Class Name: ArrayLike
Method Name: setupMetaForValue
Project Name: Qiskit/qiskit-aqua
Commit Name: 2aae12b10a3411009a2802a077bb8c6c0365b6ad
Time: 2020-08-28
Author: 31178928+t-imamichi@users.noreply.github.com
File Name: qiskit/aqua/operators/converters/abelian_grouper.py
Class Name: AbelianGrouper
Method Name: group_subops
Project Name: ray-project/ray
Commit Name: f6883bf725caca57bcebcc94aeb93f6a94542984
Time: 2020-03-03
Author: suquark@gmail.com
File Name: python/ray/cloudpickle/cloudpickle_fast.py
Class Name:
Method Name: _class_getstate