c8105b3974fba93097bd28e5ae14a27e5f56c857,ilastik/applets/objectExtraction/objectExtractionSerializer.py,SerialObjectFeaturesSlot,deserialize,#SerialObjectFeaturesSlot#Any#,79
Before Change
cache[int(t)] = []
for ch in sorted(gr[t].keys()):
feat = dict()
for key in gr[t][ch].keys():
feat[key] = gr[t][ch][key].value
cache[int(t)].append(feat)
warnings.warn("FIXME: Not deserializing object features")
//op._opRegFeats._cache = cache
self.dirty = False
After Change
return
mainOperator = self.slot.getRealOperator()
opgroup = group[self.name]
for i, (_, subgroup) in enumerate( sorted(opgroup.items() ) ):
opRegFeats = mainOperator.getLane(i)._opRegFeats
for roiString, roi_grp in subgroup.items():
logger.debug("Loading region features from dataset: "{}"".format( roi_grp.name ))
roi = eval(roiString)
region_features = {}
for key, val in roi_grp.items():
region_features[key] = val[...]
slotRoi = SubRegion( opRegFeats.CacheInput, *roi )
opRegFeats.setInSlot( opRegFeats.CacheInput, (), slotRoi, numpy.array( [[region_features]] ) )
self.dirty = False
class ObjectExtractionSerializer(AppletSerializer):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: ilastik/ilastik
Commit Name: c8105b3974fba93097bd28e5ae14a27e5f56c857
Time: 2013-03-14
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/objectExtraction/objectExtractionSerializer.py
Class Name: SerialObjectFeaturesSlot
Method Name: deserialize
Project Name: ContextLab/hypertools
Commit Name: 3e5f0e03cec31629d2a8db78751d80019aa629ce
Time: 2017-05-31
Author: andrew.heusser@gmail.com
File Name: hypertools/plot/plot.py
Class Name:
Method Name: plot
Project Name: ContextLab/hypertools
Commit Name: 57341c920b62c30155a2dd36aa4ae6dd338a76c9
Time: 2017-05-31
Author: andrew.heusser@gmail.com
File Name: hypertools/plot/plot.py
Class Name:
Method Name: plot