53aeaaf93a5daddaafea79ee403768fa5d057c78,tests/test_applets/dataSelection/testOpDataSelection.py,TestOpDataSelection_Basic2D,testProjectLocalData,#TestOpDataSelection_Basic2D#,320

Before Change


        graph = lazyflow.graph.Graph()
        reader = OperatorWrapper(OpDataSelection, graph=graph, operator_kwargs={"forceAxisOrder": False})
        reader.ProjectFile.setValue(self.projectFile)
        reader.WorkingDirectory.setValue(os.getcwd())
        reader.ProjectDataGroup.setValue("DataSelection/local_data")

        // Create a list of dataset infos . . .
        datasetInfos = []

After Change


                continue
            numpy.testing.assert_array_equal(imgData2Dc, self.imgData2Dc)

    def testProjectLocalData(self, serializer, empty_project_file):
        for fileName in self.generatedImages2Dc:
            // For some reason vigra saves 2D+c data compressed in gifs, so skip!
            if Path(fileName).suffix in self.compressedExtensions + [".gif"]:
                continue
            graph = lazyflow.graph.Graph()
            reader = OperatorWrapper(OpDataSelection, graph=graph, operator_kwargs={"forceAxisOrder": False})
            reader.ProjectFile.setValue(empty_project_file)
            reader.WorkingDirectory.setValue(str(Path(empty_project_file.filename).parent))
            reader.ProjectDataGroup.setValue("DataSelection/local_data")

            // From project
            inner_path = serializer.importStackAsLocalDataset([fileName])
            info = DatasetInfo(
                location=DatasetInfo.Location.ProjectInternal,
                project_file=empty_project_file,
                filepath=inner_path
            )

            reader.Dataset.setValues([info])

            projectInternalData = reader.Image[0][...].wait()

            assert projectInternalData.shape == self.imgData2Dc.shape, (projectInternalData.shape, self.imgData2Dc.shape)
            assert (projectInternalData == self.imgData2Dc).all()


class TestOpDataSelection_Basic_native_3D(object):
    Test related to loading file types that support 3D
    @classmethod
    def setup_class(cls):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: ilastik/ilastik
Commit Name: 53aeaaf93a5daddaafea79ee403768fa5d057c78
Time: 2019-07-26
Author: tomaz.vieira@embl.de
File Name: tests/test_applets/dataSelection/testOpDataSelection.py
Class Name: TestOpDataSelection_Basic2D
Method Name: testProjectLocalData