self.name = name or self.__class__.__name__
if self.get_from_config("build", True):
self.build(*args, **kwargs)
if self.get_from_config("load", False):
self.load(**self.get_from_config("load"))
@classmethod
After Change
self.name = name or self.__class__.__name__
if self.get("build", self.config, True):
self.build(*args, **kwargs)
load = self.get("load", self.config, False)
if load:
self.load(**load)
@classmethod