1e8cfba2cc48b26bc9d651654e06ba9c294be71a,imagej/tests/test_imagej2.py,TestImagej2,test_05_06_create_dataset,#TestImagej2#,206
Before Change
def test_05_06_create_dataset(self):
r = np.random.RandomState()
r.seed(56)
image = r.randint(0, 256, (11,13))
ds = ij2.create_dataset(self.context, image, "Foo")
pixel_data = ds.get_pixel_data()
np.testing.assert_array_equal(image, pixel_data)
After Change
def test_05_06_create_dataset(self):
i,j = np.mgrid[:7, :9]
image = (i+j*10).astype(float)
ds = ij2.create_dataset(self.context, image, "Foo")
imgplus = ds.getImgPlus()
script =
var ra=imgplus.randomAccess();
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: CellProfiler/CellProfiler
Commit Name: 1e8cfba2cc48b26bc9d651654e06ba9c294be71a
Time: 2012-12-14
Author: leek@broadinstitute.org
File Name: imagej/tests/test_imagej2.py
Class Name: TestImagej2
Method Name: test_05_06_create_dataset
Project Name: chainer/chainercv
Commit Name: b60331fa4ed1fb209e738655edfd6da04bba1e62
Time: 2017-08-07
Author: Hakuyume@users.noreply.github.com
File Name: tests/utils_tests/image_tests/test_write_image.py
Class Name: TestWriteImage
Method Name: setUp
Project Name: chainer/chainer
Commit Name: 990922266fc6f265c8bb0dfa9e45af827d57bf02
Time: 2019-10-31
Author: niboshi000@gmail.com
File Name: tests/chainerx_tests/unit_tests/routines_tests/test_indexing.py
Class Name:
Method Name: _random_condition