Beispiel #1
0
    def deserialize(self, h5G, offsets = (0,0,0), shape = (0,0,0)):
        self._dataVol = DataAccessor.deserialize(h5G, "data", offsets, shape)
        
        #load obsolete file format parts (pre version 0.5)
        #and store them in the properties
        #the responsible modules will take care of them
            
        for k in self.module.keys():
            if hasattr(self.module[k], "deserialize"):
                print "Deserializing", k
                self.module[k].deserialize(h5G, offsets, shape)

        self.updateOverlays()
Beispiel #2
0
    def deserialize(self, h5G, offsets=(0, 0, 0), shape=(0, 0, 0)):
        self._dataVol = DataAccessor.deserialize(h5G, "data", offsets, shape)

        #load obsolete file format parts (pre version 0.5)
        #and store them in the properties
        #the responsible modules will take care of them

        for k in self.module.keys():
            if hasattr(self.module[k], "deserialize"):
                print "Deserializing", k
                self.module[k].deserialize(h5G, offsets, shape)

        self.updateOverlays()
 def deserialize(self, h5G, offsets = (0,0,0), shape = (0,0,0)):
     labels = VolumeLabels.deserialize(h5G, "labels",offsets, shape)
     self["labels"] = labels
     if 'prediction' in h5G.keys():
         self["prediction"] = DataAccessor.deserialize(h5G, 'prediction', offsets, shape)