41ebf6d0df65dc0b68094515b73aafe153acd9cb,trackpy/preprocessing.py,,bandpass,#Any#Any#Any#Any#Any#,11
Before Change
threshold = 1
else:
threshold = 1/256.
settings = dict(mode="nearest", cval=0)
axes = range(image.ndim)
sizes = [x*2+1 for x in llong]
boxcar = np.asarray(image)
for (axis, size) in zip(axes, sizes):
boxcar = uniform_filter1d(boxcar, size, axis, **settings)
gaussian = gaussian_filter(image, lshort, truncate=truncate, **settings)
result = gaussian - boxcar
return np.where(result > threshold, result, 0)
After Change
else:
threshold = 1/256.
boxcar = image.copy()
result = np.array(image, dtype=np.float)
for axis, (sigma, smoothing) in enumerate(zip(lshort, llong)):
if smoothing > 1:
uniform_filter1d(boxcar, 2*smoothing+1, axis, output=boxcar,
mode="nearest", cval=0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: soft-matter/trackpy
Commit Name: 41ebf6d0df65dc0b68094515b73aafe153acd9cb
Time: 2015-05-26
Author: caspervdw@gmail.com
File Name: trackpy/preprocessing.py
Class Name:
Method Name: bandpass
Project Name: matplotlib/matplotlib
Commit Name: 34b8eb46e5de6b760bc131e461755042716e259d
Time: 2018-02-07
Author: story645@gmail.com
File Name: lib/matplotlib/category.py
Class Name: StrCategoryConverter
Method Name: convert
Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: eb13c2ea02e0e06c06b288e3590ce04cc014ba04
Time: 2019-03-22
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/topicmod/tm_gensim.py
Class Name: MultiprocEvaluationWorkerGensim
Method Name: fit_model