41ebf6d0df65dc0b68094515b73aafe153acd9cb,trackpy/preprocessing.py,,bandpass,#Any#Any#Any#Any#Any#,11
Before Change
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
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)
if sigma > 0:
correlate1d(result, gaussian_kernel(sigma, truncate), axis,
output=result, mode="constant", cval=0.0)
result -= boxcar
return np.where(result > threshold, result, 0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/base_classes.py
Class Name: ComplexFeaturizer
Method Name: featurize
Project Name: vacancy/Synchronized-BatchNorm-PyTorch
Commit Name: 3b47fa5cc3ffd0df6d5cd6b64de1d81b915453d8
Time: 2018-01-26
Author: maojiayuan@gmail.com
File Name: sync_batchnorm/sync_manager.py
Class Name: SyncManager
Method Name: collect