def __new__(cls, genome, trackName):
     key = constructKey(genome, trackName)
     
     if key in cls._preProcMetaDataStorage:
         return cls._preProcMetaDataStorage[key]
     else:
         obj = object.__new__(cls)
         cls._preProcMetaDataStorage[key] = obj
         return obj
Example #2
0
    def __new__(cls, genome, trackName):
        key = constructKey(genome, trackName)

        if key in cls._preProcMetaDataStorage:
            return cls._preProcMetaDataStorage[key]
        else:
            obj = object.__new__(cls)
            cls._preProcMetaDataStorage[key] = obj
            return obj
 def hasKey(cls, genome, trackName):
     return constructKey(genome, trackName) in cls._preProcMetaDataStorage
 def removeEntry(self):
     del self._preProcMetaDataStorage[constructKey(self._genome, self._trackName)]
Example #5
0
 def hasKey(cls, genome, trackName):
     return constructKey(genome, trackName) in cls._preProcMetaDataStorage
Example #6
0
 def removeEntry(self):
     del self._preProcMetaDataStorage[constructKey(self._genome,
                                                   self._trackName)]