e630df418745107ae3ff13d55c06aac050d7626d,tests/test_applets/dataSelection/testOpDataSelection.py,TestOpDataSelection_Basic_native_3D,test3DProjectLocalData,#TestOpDataSelection_Basic_native_3D#,416
Before Change
def test3DProjectLocalData(self, serializer, empty_project_file):
for fileName in self.generatedImages3Dc:
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(
After Change
empty_project_file["DataSelection/local_data"].create_dataset("dataset1", data=self.imgData3Dc)
reader = OperatorWrapper(OpDataSelection, graph=Graph(), operator_kwargs={"forceAxisOrder": False})
reader.WorkingDirectory.setValue(str(Path(empty_project_file.filename).parent))
info = DatasetInfo(
filepath="DataSelection/local_data/dataset1",
project_file=empty_project_file,
location=DatasetInfo.Location.ProjectInternal
)
reader.Dataset.setValues([info])
projectInternalData = reader.Image[0][...].wait()
assert projectInternalData.shape == self.imgData3Dc.shape, (projectInternalData.shape, self.imgData3Dc.shape)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: ilastik/ilastik
Commit Name: e630df418745107ae3ff13d55c06aac050d7626d
Time: 2019-07-26
Author: tomaz.vieira@embl.de
File Name: tests/test_applets/dataSelection/testOpDataSelection.py
Class Name: TestOpDataSelection_Basic_native_3D
Method Name: test3DProjectLocalData
Project Name: ilastik/ilastik
Commit Name: ad4007e349ade52915d5cc27571a280d797f17c6
Time: 2019-07-26
Author: tomaz.vieira@embl.de
File Name: tests/test_applets/dataSelection/testOpDataSelection.py
Class Name: TestOpDataSelection_SingleFileH5Stacks
Method Name: test_load_single_file_with_glob
Project Name: ilastik/ilastik
Commit Name: ad4007e349ade52915d5cc27571a280d797f17c6
Time: 2019-07-26
Author: tomaz.vieira@embl.de
File Name: tests/test_applets/dataSelection/testOpDataSelection.py
Class Name: TestOpDataSelection_FakeDataReader
Method Name: test_real_data_source