f051122cda7eb6ead74dca0311a75fead3a9742f,tests/test_dilate_erode.py,,test_dilate_erode,#,4
Before Change
def test_dilate_erode():
A=numpy.zeros((100,100))
Bc=numpy.zeros((3,3))
Bc[2,1]=1
Bc[1]=1
Bc[0,1]=1
A[30,30]=1
After Change
def test_dilate_erode():
A = np.zeros((100,100))
Bc = np.array([
[0, 1, 0],
[1, 1, 1],
[0, 1, 0]], bool)
A[30,30] = 1
A = (A!=0)
orig = A.copy()
for i in xrange(12):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: luispedro/mahotas
Commit Name: f051122cda7eb6ead74dca0311a75fead3a9742f
Time: 2010-08-12
Author: lpc@cmu.edu
File Name: tests/test_dilate_erode.py
Class Name:
Method Name: test_dilate_erode
Project Name: kundajelab/dragonn
Commit Name: 9c158b87f5fb2dca1ed95884e667ab2fc218e1b7
Time: 2017-05-01
Author: jisraeli@stanford.edu
File Name: dragonn/models.py
Class Name: SequenceDNN
Method Name: deeplift
Project Name: theislab/scanpy
Commit Name: 2bbca4b5e1d6dafa223d9d643975cdc33ab03f7a
Time: 2020-12-03
Author: fidel.ramirez@gmail.com
File Name: scanpy/tests/test_get.py
Class Name:
Method Name: test_obs_df