0bf6d2940a46cd414be5d738232e49602fb90826,skimage/morphology/extrema.py,,local_maxima,#Any#Any#Any#Any#Any#,289
Before Change
dtype = np.int64
else:
dtype = np.float64
image = image.astype(dtype, order="C", copy=False)
_local_maxima(image.ravel(), flags.ravel(), neighbor_offsets)
if allow_borders:
After Change
flags = np.zeros(image.shape, dtype=np.uint8)
_set_edge_values_inplace(flags, value=3)
try:
_local_maxima(image.ravel(), flags.ravel(), neighbor_offsets)
except TypeError:
if image.dtype == np.float16:
// Provide the user with clearer error message
raise TypeError("dtype of `image` is float16 which is not "
"supported, try upcasting to float32")
else:
raise
if allow_borders:
// Revert padding performed at the beginning of the function
flags = crop(flags, 1)
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: scikit-image/scikit-image
Commit Name: 0bf6d2940a46cd414be5d738232e49602fb90826
Time: 2018-05-22
Author: lagru@mailbox.org
File Name: skimage/morphology/extrema.py
Class Name:
Method Name: local_maxima
Project Name: pymc-devs/pymc3
Commit Name: 5b2766aae94c0615aef2c8d6ac178428e6d28745
Time: 2008-07-20
Author: fonnesbeck@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/database/mysql.py
Class Name: Trace
Method Name: tally
Project Name: nipy/dipy
Commit Name: 3ebeb8037e7bbb3007ddf668cb5e6512a0f70b5f
Time: 2011-07-27
Author: mrbago+git@gmail.com
File Name: dipy/tracking/fact_tracking.py
Class Name: FactTensorModel
Method Name: next_step