Source code for Mordicus.Core.Containers.ResolutionData.ResolutionDataBase

# coding: utf-8

[docs]class ResolutionDataBase(object): ''' Objects constant to all simulation to reduce with ''' def __init__(self): self.__storage = None
[docs] def SetInternalStorage(self, __storage): """ Sets the internal storage Parameters ---------- __storage : typeToDefine """ if self.__storage is not None: print( "Internal storage already set. Replacing it anyway." ) # pragma: no cover self.__storage = __storage
[docs] def GetInternalStorage(self): """ Returns ------- typeToDefine internal storage """ if self.__storage is None: raise AttributeError("Please set internal storage") # pragma: no cover return self.__storage