def getFilename(self, args): """Return a filename for a cached object corresponding to the provided args and this data type. This combines a hash of args with the name of this class. We create the cache directory if necessary. """ hash = hashlib.md5(repr(args)).hexdigest() return Files.getCacheFile(self.__class__.__name__, hash)