f921a41292d13178a6eca168b8bd261f190b76b4,ilastik-shell/applets/dataSelection/dataSelectionSerializer.py,DataSelectionSerializer,_serializeToHdf5,#DataSelectionSerializer#Any#Any#Any#,39
Before Change
del infoDir[infoName]
for index, slot in enumerate(self.mainOperator.Dataset):
infoGroup = infoDir.create_group("info{:04d}".format(index))
datasetInfo = slot.value
locationString = self.LocationStrings[datasetInfo.location]
infoGroup.create_dataset("location", data=locationString)
infoGroup.create_dataset("filePath", data=datasetInfo.filePath)
infoGroup.create_dataset("datasetId", data=datasetInfo.datasetId)
infoGroup.create_dataset("allowLabels", data=datasetInfo.allowLabels)
localDataGroup = self.getOrCreateGroup(topGroup, "local_data")
wroteInternalData = False
for index, slot in enumerate(self.mainOperator.Dataset):
info = slot.value
After Change
self.mainOperator.Dataset.notifyInserted( bind(handleNewDataset) )
def _serializeToHdf5(self, topGroup, hdf5File, projectFilePath):
with Tracer(traceLogger):
if self.mainOperator.ProjectFile.connected():
assert self.mainOperator.ProjectFile.value == hdf5File
infoDir = self.getOrCreateGroup(topGroup, "infos")
for infoName in infoDir.keys():
del infoDir[infoName]
for index, slot in enumerate(self.mainOperator.Dataset):
infoGroup = infoDir.create_group("info{:04d}".format(index))
datasetInfo = slot.value
locationString = self.LocationStrings[datasetInfo.location]
infoGroup.create_dataset("location", data=locationString)
infoGroup.create_dataset("filePath", data=datasetInfo.filePath)
infoGroup.create_dataset("datasetId", data=datasetInfo.datasetId)
infoGroup.create_dataset("allowLabels", data=datasetInfo.allowLabels)
localDataGroup = self.getOrCreateGroup(topGroup, "local_data")
wroteInternalData = False
for index, slot in enumerate(self.mainOperator.Dataset):
info = slot.value
if info.location == DatasetInfo.Location.ProjectInternal \
and info.datasetId not in localDataGroup.keys():
dataSlot = self.mainOperator.Image[index]
data = dataSlot[...].wait()
dataset = localDataGroup.create_dataset(info.datasetId, data=data)
dataset.attrs["axistags"] = dataSlot.meta.axistags.toJSON()
wroteInternalData = True
localDatasetIds = [ slot.value.datasetId
for index, slot
in enumerate(self.mainOperator.Dataset)
if slot.value.location == DatasetInfo.Location.ProjectInternal ]
for datasetName in localDataGroup.keys():
if datasetName not in localDatasetIds:
del localDataGroup[datasetName]
if wroteInternalData:
infoCopy = copy.copy(self.mainOperator.Dataset[0].value)
self.mainOperator.Dataset[0].setValue(infoCopy)
self._dirty = False
def _deserializeFromHdf5(self, topGroup, groupVersion, hdf5File, projectFilePath):
with Tracer(traceLogger):

In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: ilastik/ilastik
Commit Name: f921a41292d13178a6eca168b8bd261f190b76b4
Time: 2012-06-26
Author: bergs@janelia.hhmi.org
File Name: ilastik-shell/applets/dataSelection/dataSelectionSerializer.py
Class Name: DataSelectionSerializer
Method Name: _serializeToHdf5
Project Name: ilastik/ilastik
Commit Name: be81d75f31d318e087760bf9cb5b80a1540f3ddd
Time: 2012-06-25
Author: bergs@janelia.hhmi.org
File Name: ilastik-shell/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: addFileNames
Project Name: ilastik/ilastik
Commit Name: f921a41292d13178a6eca168b8bd261f190b76b4
Time: 2012-06-26
Author: bergs@janelia.hhmi.org
File Name: ilastik-shell/applets/pixelClassification/pixelClassificationSerializer.py
Class Name: PixelClassificationSerializer
Method Name: _serializePredictions
Project Name: ilastik/ilastik
Commit Name: c99c7e6af33e4e9b6b5f4564b042cafc5a440b1a
Time: 2012-06-25
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/obsolete/classifierOperators.py
Class Name: OpTrainRandomForestBlocked
Method Name: execute