a675f195b0ecbe7123391e45d799e8e049181617,tests/testOpStreamingHdf5Reader.py,TestOpStreamingHdf5Reader,setUp,#TestOpStreamingHdf5Reader#,10

Before Change


        for i in range(datashape[0]):
            for j in range(datashape[1]):
                for k in range(datashape[2]):
                    for l in range(datashape[3]):
                        for m in range(datashape[4]):
                            self.data[i,j,k,l,m] = i+j+k+l+m

    def tearDown(self):
        self.h5File.close()
        try:
            os.remove(self.testDataFileName)

After Change



        // Create a test dataset
        datashape = (1,2,3,4,5)
        self.data = numpy.indices(datashape).sum(0).astype(numpy.float32)

    def tearDown(self):
        self.h5File.close()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: a675f195b0ecbe7123391e45d799e8e049181617
Time: 2012-10-04
Author: bergs@janelia.hhmi.org
File Name: tests/testOpStreamingHdf5Reader.py
Class Name: TestOpStreamingHdf5Reader
Method Name: setUp


Project Name: ilastik/ilastik
Commit Name: 09f11428ceeac33f36136e0dcb65659195e94c7c
Time: 2012-10-04
Author: bergs@janelia.hhmi.org
File Name: tests/testOpInputDataReader.py
Class Name: TestOpInputDataReader
Method Name: test_h5


Project Name: prody/ProDy
Commit Name: fa926b8278a3b635d929e0fe6c63ac2a8983a406
Time: 2012-12-15
Author: lordnapi@gmail.com
File Name: lib/prody/dynamics/nma.py
Class Name: NMA
Method Name: __getitem__